@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

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

body {
  font-family: 'JetBrains Mono', monospace;
  background: #fff;
  color: #111;
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.tabs { display: flex; border-bottom: 1px solid #ccc; gap: 0; overflow-x: auto; }
.tab { padding: 6px 14px; color: #555; text-decoration: none; border-right: 1px solid #ddd; white-space: nowrap; font-size: 12px; }
.tab:hover { color: #111; }
.tab.active { color: #111; border-bottom: 2px solid #111; margin-bottom: -1px; }

/* Breadcrumb */
.breadcrumb { padding: 4px 20px; border-bottom: 1px solid #eee; color: #555; font-size: 11px; }
.breadcrumb .sep { margin: 0 4px; }

/* Content */
.content { max-width: 620px; margin: 0 auto; padding: 20px 20px 60px; flex: 1; width: 100%; }

/* Wide content (for interactive pages) */
.content-wide { max-width: 960px; margin: 0 auto; padding: 20px 20px 60px; flex: 1; width: 100%; }

/* Typography */
h1 { font-size: 14px; font-weight: 500; }
h2 { font-size: 13px; font-weight: 500; margin: 16px 0 4px; }
h3 { font-size: 13px; font-weight: 500; margin: 12px 0 4px; }
p { margin: 10px 0; }
a { color: #111; text-decoration: underline; }
a:hover { color: #000; }
.sub { margin-left: 2ch; }

/* Interactions */
p:hover, h2:hover, h3:hover { outline: 1px solid #111; }
hr { border: none; border-top: 1px solid #ddd; margin: 12px 0; }

/* Code */
pre {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #ddd;
  padding: 8px 10px;
  margin: 8px 0;
  overflow-x: auto;
  white-space: pre;
}

code {
  font-family: inherit;
  font-size: 12px;
  border: 1px solid #ddd;
  padding: 0 3px;
}

pre code {
  border: none;
  padding: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
  width: 100%;
}

th, td {
  border: 1px solid #ddd;
  padding: 4px 8px;
  text-align: left;
}

th { font-weight: 500; }

/* Lists */
ul, ol { margin: 4px 0 4px 2ch; }
li { margin: 2px 0; }

/* Images */
img { max-width: 100%; height: auto; margin: 8px 0; }

/* Blockquotes */
blockquote {
  border-left: 2px solid #ddd;
  padding-left: 12px;
  margin: 8px 0;
  color: #555;
}

/* Table of Contents */
.toc { border: 1px solid #ddd; padding: 10px 14px; margin: 0 0 16px; }
.toc-title { font-size: 11px; font-weight: 500; color: #555; margin: 0 0 6px; letter-spacing: 0.5px; }
.toc-item { display: block; color: #111; text-decoration: none; font-size: 12px; line-height: 1.8; }
.toc-item:hover { text-decoration: underline; }
.toc-h3 { padding-left: 2ch; }

/* Statusbar */
.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #ddd;
  padding: 3px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #bbb;
  background: #fff;
  z-index: 100;
}
