/* ── Tokens ──────────────────────────────────────────── */
:root {
  --primary-100: #081327;
  --primary-200: #30394f;
  --primary-300: #8890ab;
  --accent-100: #01ffcd;
  --accent-200: #2f9c86;
  --text-100: #1a2332;
  --text-200: #5c6578;
  --bg-100: #f7f8fa;
  --bg-200: #eef1f5;
  --white: #ffffff;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --line: #e2e8f0;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(8,19,39,.04), 0 8px 24px rgba(8,19,39,.06);
  --sidebar-w: 248px;

  /* Layout — eine Spalte für alles */
  --content-max: 720px;
  --pad-x: clamp(24px, 5vw, 48px);
  --pad-y: 48px;
  --gap-section: 48px;
  --gap-header: 40px;

  /* Typografie — ein Skala-Set */
  --text-body: 17px;
  --text-lead: 18px;
  --text-small: 15px;
  --text-meta: 13px;
  --text-h1: clamp(1.85rem, 3.5vw, 2.35rem);
  --text-h2: 1.25rem;
  --text-h3: 1.0625rem;
}

*, *::before, *::after { box-sizing: border-box; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-100);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(1,255,205,.35); color: var(--primary-100); }
a { color: var(--accent-200); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-100); }

/* ── Shell ───────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  background: var(--bg-100);
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
  color: var(--primary-100);
}
.brand-logo { width: 64px; height: auto; flex-shrink: 0; }
.brand-tag {
  font-family: var(--font-heading);
  font-size: var(--text-meta);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--primary-300);
  text-transform: uppercase;
}

.github-link {
  display: inline-flex;
  align-items: center;
  margin: -12px 0 20px;
  padding: 0 10px;
  font-size: var(--text-meta);
  font-weight: 400;
  color: var(--text-200);
  text-decoration: none;
  transition: color .15s;
}
.github-link:hover {
  color: var(--accent-200);
}

.search { display: block; margin-bottom: 24px; }
.search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--text-100);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--primary-300); }
.search input:focus {
  border-color: var(--accent-200);
  box-shadow: 0 0 0 3px rgba(1,255,205,.18);
}

.nav-group { margin-bottom: 22px; }

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-sublabel {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--text-100);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-sublabel:hover { background: var(--white); color: var(--primary-100); }
.nav-sublabel.active {
  margin: 4px 0;
  background: var(--white);
  color: var(--primary-100);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(8,19,39,.06);
}
.nav-label {
  margin: 0 0 6px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-300);
}
.nav-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--text-100);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--white); color: var(--primary-100); }
.nav-link.active {
  margin: 4px 0;
  background: var(--white);
  color: var(--primary-100);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(8,19,39,.06);
}
.nav-link--accent {
  font-size: var(--text-meta);
  color: var(--accent-200);
}
.nav-link--accent:hover {
  color: var(--primary-100);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--text-meta);
  color: var(--primary-300);
  display: flex;
  gap: 8px;
}
.sidebar-foot a { color: var(--primary-300); text-decoration: none; }
.sidebar-foot a:hover { color: var(--accent-200); }

/* ── Main + Page (einheitliche Spalte) ───────────────── */
.main {
  min-width: 0;
  padding: var(--pad-y) var(--pad-x);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}


.page-foot-credits {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: var(--text-meta);
  color: var(--primary-300);
  text-align: center;
}
.page-foot-credits a {
  color: var(--primary-300);
  text-decoration: none;
}
.page-foot-credits a:hover {
  color: var(--accent-200);
}
.page-foot {
  margin-top: auto;
  padding-top: var(--gap-section);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--text-meta);
  color: var(--primary-300);
}
.page-foot a { color: var(--primary-300); }
.page-foot a:hover { color: var(--accent-200); }

/* ── Typografie (global) ─────────────────────────────── */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-200);
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--primary-100);
  letter-spacing: -.02em;
}
.subtitle {
  margin: 16px 0 0;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--text-200);
}

/* ── Seitenkopf (Home + Docs + Blog) ─────────────────── */
.page-header {
  margin-bottom: var(--gap-section);
  padding-bottom: var(--gap-header);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.15;
}
.page-header h1 em {
  font-style: normal;
  color: var(--accent-200);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-sm { padding: 9px 16px; font-size: var(--text-meta); }
.btn-primary {
  background: var(--accent-100);
  color: var(--primary-100);
}
.btn-primary:hover {
  background: #00e6b8;
  color: var(--primary-100);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1,255,205,.28);
}
.btn-ghost {
  background: transparent;
  color: var(--primary-100);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--primary-200);
  color: var(--primary-100);
  transform: translateY(-1px);
}

/* ── Skill Prompt (inline code + copy) ───────────────── */
.skill-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: var(--text-small);
  max-width: 100%;
  min-width: 0;
}
.skill-prompt code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}
.copy-btn-inline {
  font-size: var(--text-meta);
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-200);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.copy-btn-inline:hover {
  border-color: var(--accent-200);
  color: var(--primary-100);
}
/* ── Sektionen ───────────────────────────────────────── */
.section {
  margin-bottom: var(--gap-section);
}
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: var(--text-h2);
  font-weight: 700;
}
.section-head p {
  margin: 0;
  font-size: var(--text-small);
  color: var(--text-200);
}
.section-tint {
  padding: var(--gap-header);
  background: var(--bg-100);
  border-radius: var(--radius-lg);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.card-link:hover {
  border-color: rgba(1,255,205,.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.card-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-200);
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: var(--text-h3);
  font-weight: 700;
}
.card p {
  margin: 0;
  flex: 1;
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--text-200);
}
.card-more {
  margin-top: 16px;
  font-size: var(--text-meta);
  font-weight: 600;
  color: var(--accent-200);
}
.card-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.card-download h3 { margin: 0 0 4px; }
.card-download .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.card-blog time {
  display: block;
  margin-bottom: 8px;
  font-size: var(--text-meta);
  color: var(--primary-300);
}

/* ── Split / Code ────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.split h2 {
  margin: 0 0 20px;
  font-size: var(--text-h2);
  font-weight: 700;
}
.steps {
  margin: 0;
  padding-left: 1.25em;
  font-size: var(--text-small);
  color: var(--text-200);
}
.steps li { margin: 10px 0; }
.steps strong { color: var(--text-100); font-weight: 600; }
.steps code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ── Prose (Blog, Docs, Skill-Artikel) ───────────────── */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 {
  margin: 1.5em 0 .6em;
  font-size: var(--text-h2);
  font-weight: 700;
}
.prose h3 {
  margin: 1.3em 0 .5em;
  font-size: var(--text-h3);
  font-weight: 700;
}
.prose h4 {
  margin: 1.1em 0 .4em;
  font-size: var(--text-body);
  font-weight: 700;
}
.prose p { margin: .8em 0; }
.prose ul, .prose ol {
  margin: .8em 0;
  padding-left: 1.35em;
}
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent-200); }
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
}
.prose blockquote {
  margin: 1em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent-100);
  color: var(--text-200);
  font-style: italic;
}
.prose strong { font-weight: 600; color: var(--text-100); }
.prose a { color: var(--accent-200); }
.prose hr {
  margin: 1.5em 0;
  border: none;
  border-top: 1px solid var(--line);
}
.prose table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: var(--text-small);
  line-height: 1.55;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg-100);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-meta);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-200);
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}
.prose td:first-child {
  width: 30%;
  min-width: 120px;
  color: var(--text-100);
}
.prose td:last-child {
  color: var(--text-200);
}
.post-back {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

/* ── Code blocks (einheitlich) ───────────────────────── */
.code-block,
.prose pre,
.preview-content pre,
.highlighter-rouge pre,
.highlight pre {
  position: relative;
  margin: 1em 0;
  padding: 16px 20px;
  padding-top: 40px;
  background: var(--primary-100);
  color: #d8e4f0;
  border: 1px solid rgba(136, 144, 171, .25);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.6;
  overflow-x: auto;
}
.code-block:first-child,
.prose pre:first-child,
.preview-content pre:first-child {
  margin-top: 0;
}
.code-block code,
.prose pre code,
.preview-content pre code,
.highlighter-rouge pre code,
.highlight pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.highlighter-rouge {
  margin: 1em 0;
}
.highlighter-rouge pre {
  margin: 0;
}
/* Nur Wrapper-div, nicht pre.highlight (Rouge setzt dieselbe Klasse auf <pre>) */
.highlighter-rouge > .highlight {
  background: none;
}
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-meta);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(136, 144, 171, .35);
  background: rgba(8, 19, 39, .6);
  color: #d8e4f0;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.code-copy-btn:hover {
  border-color: var(--accent-200);
  background: rgba(8, 19, 39, .85);
  color: var(--accent-100);
}
.prompt { color: var(--accent-100); }
.comment { color: var(--primary-300); }

/* ── Note ────────────────────────────────────────────── */
.note {
  margin-bottom: var(--gap-section);
  padding: 16px 20px;
  background: var(--bg-100);
  border-left: 3px solid var(--accent-200);
  border-radius: var(--radius);
  font-size: var(--text-small);
  color: var(--text-200);
}
.note strong { color: var(--text-100); }

/* ── Preview (Skill.md Vorschau) ─────────────────────── */
.preview-wrapper {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-100);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-small);
  color: var(--text-200);
}
.preview-title {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  color: var(--primary-300);
}
.copy-btn {
  font-family: var(--font-heading);
  font-size: var(--text-meta);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text-200);
  cursor: pointer;
  transition: all .15s;
}
.copy-btn:hover {
  border-color: var(--accent-200);
  color: var(--primary-100);
}
.preview-content {
  margin: 0;
  padding: 20px;
  background: var(--white);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-100);
}
.preview-content.prose h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
pre.preview-content {
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
pre.preview-content code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.download-actions {
  text-align: center;
  margin-bottom: 32px;
}

/* ── Skill Footer (CTA + Preview + Lizenz) ───────────── */
.skill-footer {
  margin-top: var(--gap-section);
  padding-top: var(--gap-header);
  border-top: 1px solid var(--line);
}
.skill-footer .skill-cta {
  margin-bottom: var(--gap-section);
}
.skill-footer .skill-cta .section-head {
  margin-bottom: 16px;
}
.skill-footer .skill-cta .section-head h2 {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 700;
}
.skill-footer .section-head {
  margin-bottom: 20px;
}
.skill-footer .section-head h2 {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 700;
}
.skill-footer .preview-wrapper {
  margin-bottom: var(--gap-section);
}
.skill-license {
  padding-top: var(--gap-header);
  border-top: 1px solid var(--line);
}
.skill-license h2 {
  margin: 0 0 8px;
  font-size: var(--text-h2);
  font-weight: 700;
}
.skill-license p {
  margin: 0;
}

/* ── Skill Two-Column Layout ─────────────────────────── */
.skill-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.skill-sidebar {
  position: sticky;
  top: 24px;
}
.sidebar-card {
  background: var(--bg-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.sidebar-card h3 {
  font-size: var(--text-lead);
  margin: 0 0 16px;
  font-weight: 700;
}
.sidebar-card ul {
  margin: 0;
  padding-left: 1.25em;
  font-size: var(--text-small);
  color: var(--text-200);
}
.sidebar-card li { margin: 8px 0; }
.sidebar-card a {
  display: block;
  margin-top: 12px;
  font-size: var(--text-meta);
  font-weight: 600;
}
.sidebar-card code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-100);
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  margin-top: var(--gap-section);
  padding-top: var(--gap-header);
  border-top: 1px solid var(--line);
  font-size: var(--text-meta);
  color: var(--primary-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.site-footer a { color: var(--primary-300); }
.site-footer a:hover { color: var(--accent-200); }

/* ── Nav Toggle (mobile only) ──────────────────────────── */
.nav-toggle {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  transition: border-color .15s;
}
.nav-toggle:hover {
  border-color: var(--accent-200);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-100);
  border-radius: 2px;
  transition: background .15s;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: min(var(--sidebar-w), 85vw);
    height: 100vh;
    border-right: 1px solid var(--line);
    border-bottom: none;
    padding: 56px 20px 20px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(8, 19, 39, .12);
  }
  .shell:has(.sidebar.open)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(8, 19, 39, .35);
  }
  .brand {
    margin-bottom: 16px;
  }
  .search {
    margin-bottom: 16px;
  }
  .nav-group {
    margin-bottom: 16px;
  }
  .skill-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .skill-sidebar {
    position: relative;
    top: 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
  .card-download {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .main {
    padding-top: 56px;
  }
}

@media (max-width: 600px) {
  :root {
    --pad-x: 16px;
    --pad-y: 32px;
    --gap-section: 32px;
    --gap-header: 24px;
    --text-body: 16px;
    --text-lead: 17px;
  }
  .page-header h1 {
    font-size: var(--text-h1);
  }
  .cta-row {
    flex-direction: column;
  }
  .cta-row .btn {
    width: 100%;
  }
  .card {
    padding: 16px;
  }
  .card-download .btn {
    width: 100%;
    justify-content: center;
  }
  .page-foot,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .preview-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .skill-prompt {
    flex-direction: column;
    align-items: stretch;
  }
  .skill-prompt code {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
  }
  .copy-btn-inline {
    align-self: flex-start;
  }
  .code-block,
  .prose pre,
  .preview-content pre,
  .highlighter-rouge pre {
    padding: 14px 16px;
    padding-top: 38px;
  }
  .prose table,
  .prose thead,
  .prose tbody,
  .prose th,
  .prose td,
  .prose tr {
    display: block;
  }
  .prose thead {
    display: none;
  }
  .prose tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }
  .prose tr:last-child {
    margin-bottom: 0;
  }
  .prose td {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .prose td:first-child {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-100);
  }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 0;
  }
  .page {
    max-width: none;
  }
  .code-block,
  .prose pre,
  .preview-content pre,
  .highlighter-rouge pre {
    background: var(--bg-100);
    color: var(--text-100);
    border: 1px solid var(--line);
  }
  .code-copy-btn {
    display: none;
  }
}

/* Skills listing: loading/empty/error state */
.muted { color: var(--text-muted, #6b7280); font-size: 0.95rem; }
