/* ─── DOCKER NOTES — STYLES ─── */

/* ─── DARK MODE TOKENS (Default) ─── */
:root {
  --bg:           #09090b;
  --surface:      #111113;
  --card:         #18181b;
  --border:       #27272a;
  --border-light: #3f3f46;
  --text:         #fafafa;
  --muted:        #a1a1aa;
  --dim:          #52525b;
  --shadow:       0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.5);
  --accent:       #6366f1;
  --accent2:      #818cf8;
  --accent3:      #a5b4fc;
  --green:        #22c55e;
  --amber:        #f59e0b;
  --coral:        #f97316;
  --pink:         #ec4899;
  --teal:         #14b8a6;
  --topbar-height: 48px;
  --sidebar-width: 260px;
}

/* ─── LIGHT MODE ─── */
.light, [data-theme="light"] {
  --bg:           #fafaf9;
  --surface:      #f4f4f5;
  --card:         #ffffff;
  --border:       #e4e4e7;
  --border-light: #d4d4d8;
  --text:         #09090b;
  --muted:        #52525b;
  --dim:          #a1a1aa;
  --shadow:       0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08);
  --green-text:   #15803d;
  --amber-text:   #b45309;
  --coral-text:   #c2410c;
  --pink-text:    #be185d;
  --teal-text:    #0f766e;
}

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

html { font-size: 15px; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent3); text-decoration: underline; }

/* ─── TOPBAR ─── */
.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-logo-mark {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1;
}

.topbar-logo-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.topbar-bc-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-bc-link:hover { color: var(--text); text-decoration: none; }

.topbar-bc-sep {
  color: var(--dim);
  font-size: 11px;
}

.topbar-bc-current {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  transition: all .15s ease;
  flex-shrink: 0;
}
.topbar-theme-toggle:hover { border-color: var(--border-light); color: var(--text); }

.icon-light { display: none; }
.icon-dark  { display: inline; }
.light .icon-dark  { display: none; }
.light .icon-light { display: inline; }

.topbar-request {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s ease;
}
.topbar-request:hover { opacity: 0.88; text-decoration: none; color: #fff; }

/* ─── LAYOUT ─── */
.app-layout {
  display: flex;
  height: calc(100vh - var(--topbar-height));
  margin-top: var(--topbar-height);
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - var(--topbar-height));
  position: sticky;
  top: var(--topbar-height);
}

.sidebar-label {
  padding: 14px 16px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
}

#toc-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
}
#toc-nav::-webkit-scrollbar { width: 3px; }
#toc-nav::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
#toc-nav::-webkit-scrollbar-track { background: transparent; }

/* TOC Items */
.toc-item { }

a.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all .12s ease;
  border-left: 2px solid transparent;
  position: relative;
}
a.toc-header:hover {
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
}
.light a.toc-header:hover { background: rgba(0,0,0,.04); }
a.toc-header.active {
  border-left-color: var(--accent);
  background: rgba(99,102,241,.07);
  color: var(--accent2);
}
.light a.toc-header.active { color: var(--accent); }

.toc-icon { font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }
.toc-label { flex: 1; }

.toc-chevron {
  font-size: 9px;
  color: var(--dim);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.toc-item.open .toc-chevron { transform: rotate(90deg); }

.toc-subs {
  display: none;
  padding-left: 28px;
  padding-bottom: 4px;
}
.toc-item.open .toc-subs { display: block; }

a.toc-sub {
  display: block;
  padding: 5px 14px 5px 0;
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  border-left: 1px solid var(--border);
  padding-left: 12px;
  transition: all .12s ease;
}
a.toc-sub:hover { color: var(--muted); text-decoration: none; border-left-color: var(--border-light); }
a.toc-sub.active {
  color: var(--accent2);
  border-left-color: var(--accent);
  font-weight: 500;
}
.light a.toc-sub.active { color: var(--accent); }

/* Sidebar Footer Progress */
.sidebar-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 5px;
}
.progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width .4s ease;
}

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - var(--topbar-height));
}

.main-header {
  padding: 16px 48px 0;
  max-width: 960px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 12px;
  color: var(--dim);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.breadcrumb .bc-active { color: var(--muted); }

/* ─── CONTENT CONTAINER ─── */
.content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 48px 64px;
}

/* ─── TYPOGRAPHY ─── */
.topic-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.topic-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.subsection-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.body-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ─── DIFFICULTY BADGE ─── */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.difficulty-badge.beginner     { background: rgba(34,197,94,.12);  color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.difficulty-badge.intermediate { background: rgba(245,158,11,.12); color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }
.difficulty-badge.advanced     { background: rgba(249,115,22,.12); color: #f97316; border: 1px solid rgba(249,115,22,.25); }
.difficulty-badge.expert       { background: rgba(239,68,68,.12);  color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.light .difficulty-badge.beginner     { color: #15803d; }
.light .difficulty-badge.intermediate { color: #b45309; }
.light .difficulty-badge.advanced     { color: #c2410c; }
.light .difficulty-badge.expert       { color: #dc2626; }

/* ─── CODE BLOCKS ─── */
.code-block {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
}
.light .code-block { background: #18181b; border-color: #27272a; }

.code-header {
  background: #111113;
  border-bottom: 1px solid #27272a;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.light .code-header { background: #111113; border-color: #27272a; }

.code-lang {
  font-size: 11px;
  color: #52525b;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-copy {
  background: none;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  color: #71717a;
  cursor: pointer;
  font-size: 10px;
  padding: 2px 8px;
  transition: all .15s ease;
}
.code-copy:hover { border-color: #6366f1; color: #818cf8; }

.code-block code, .code-block pre {
  display: block;
  padding: 16px;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #e4e4e7;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.light .code-block code, .light .code-block pre { color: #fafafa; }

/* Inline code */
code:not(.code-block code) {
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 4px;
  font-size: 12px;
  padding: 1px 6px;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--accent3);
}

/* ─── CALLOUT BOXES ─── */
.callout {
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  border-left: 3px solid;
  font-size: 13px;
  line-height: 1.6;
}
.callout.info    { background: rgba(99,102,241,.08);  border-left-color: var(--accent);  color: var(--muted); }
.callout.success { background: rgba(34,197,94,.08);   border-left-color: var(--green);   color: var(--muted); }
.callout.warning { background: rgba(245,158,11,.08);  border-left-color: var(--amber);   color: var(--muted); }
.callout.danger  { background: rgba(239,68,68,.08);   border-left-color: #ef4444;        color: var(--muted); }
.callout-title   { font-weight: 700; color: var(--text); margin-bottom: 4px; font-size: 13px; }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
tr:hover td { background: rgba(255,255,255,.02); }
.light tr:hover td { background: rgba(0,0,0,.02); }

/* ─── TABS ─── */
.tabs-container { margin: 16px 0; }
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all .15s ease;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--muted); }
.tab-btn.active { color: var(--accent2); border-bottom-color: var(--accent); }
.light .tab-btn.active { color: var(--accent); }

.tab-panel { display: none; padding: 20px 0 0; }
.tab-panel.active { display: block; }

/* ─── EXPANDABLE BLOCKS ─── */
.expand-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0;
  overflow: hidden;
}
.expand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background .12s ease;
  user-select: none;
}
.expand-header:hover { background: var(--surface); }
.expand-chevron { font-size: 10px; color: var(--dim); transition: transform .2s ease; }
.expand-block.open .expand-chevron { transform: rotate(90deg); }
.expand-body {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.expand-block.open .expand-body { display: block; }

/* ─── CARDS ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.info-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.info-card-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── STAT BLOCKS ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── DIAGRAM / ASCII ─── */
.diagram {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0;
  overflow-x: auto;
}
.light .diagram { background: #18181b; border-color: #27272a; }
.diagram pre {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0;
  white-space: pre;
}

/* ─── STEPS LIST ─── */
.steps-list { counter-reset: steps; list-style: none; margin: 12px 0; padding: 0; }
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.steps-list li::before {
  content: counter(steps);
  background: rgba(99,102,241,.15);
  color: var(--accent2);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── BULLET LIST ─── */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
}
.bullet-list li {
  padding: 4px 0 4px 18px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  line-height: 1.6;
}
.bullet-list li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 7px;
}

/* ─── QUIZ ─── */
.quiz-block { margin: 24px 0; }
.quiz-question {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.quiz-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 14px;
  text-align: left;
  transition: all .15s ease;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.quiz-opt.correct { background: rgba(34,197,94,.1); border-color: var(--green); color: #22c55e; }
.quiz-opt.wrong   { background: rgba(239,68,68,.1);  border-color: #ef4444;     color: #ef4444; }
.quiz-question.answered .quiz-opt { cursor: default; }
.quiz-explain {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(99,102,241,.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.quiz-question.answered .quiz-explain { display: block; }

/* ─── INTERVIEW Q&A ─── */
.qa-block { margin: 16px 0; }
.qa-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.qa-question {
  padding: 12px 16px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  user-select: none;
  transition: background .12s ease;
}
.qa-question:hover { background: var(--surface); }
.qa-toggle { font-size: 10px; color: var(--dim); flex-shrink: 0; margin-top: 2px; transition: transform .2s ease; order: 1; margin-left: auto; }
.qa-item.open .qa-toggle { transform: rotate(90deg); }
.qa-answer {
  display: none;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.qa-item.open .qa-answer { display: block; }

/* ─── TOPIC NAV (Prev/Next) ─── */
.topic-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.topic-nav-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s ease;
  max-width: 220px;
}
.topic-nav-link:hover { border-color: var(--accent); text-decoration: none; }
.topic-nav-dir { font-size: 11px; color: var(--dim); }
.topic-nav-title { font-size: 13px; font-weight: 500; color: var(--text); }
.topic-nav-link.next { text-align: right; }

/* Related topics */
.related-section { margin-top: 28px; }
.related-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.related-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all .15s ease;
}
.related-link:hover { border-color: var(--accent); color: var(--accent2); text-decoration: none; }

/* ─── CHEATSHEET SPECIFIC ─── */
.cheatsheet-section { margin-bottom: 32px; }
.cheatsheet-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── COMPARISON BLOCK ─── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.compare-col { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.compare-col-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ─── MENTAL MODEL BOX ─── */
.mental-model {
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.mental-model-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.mental-model-body { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── MISCONCEPTION BOX ─── */
.misconception {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0;
}
.misconception-title {
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.misconception-body { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── OVERVIEW HERO ─── */
.overview-hero {
  background: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(20,184,166,.04) 100%);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
}
.overview-hero-title { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.15; margin-bottom: 10px; }
.overview-hero-sub   { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 680px; }

/* ─── RESPONSIVE MOBILE ─── */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 90;
    width: 260px;
    transition: left .25s ease;
    height: calc(100vh - var(--topbar-height));
  }
  .sidebar.open { left: 0; }

  .main-content { width: 100%; }
  .content-container { padding: 20px 18px 48px; }
  .main-header { padding: 12px 18px 0; }

  .compare-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }

  .topbar-logo-text { display: none; }
  .topbar-breadcrumb { display: none; }

  .menu-toggle {
    display: flex;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    padding: 5px 8px;
    font-size: 16px;
    align-items: center;
    transition: all .15s ease;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 89;
  }
  .sidebar-overlay.active { display: block; }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .sidebar-overlay { display: none !important; }
}
