/* Tlhano shared styles — design tokens and the top bar.
   Permanent light mode: the same palette as the docs site. */

:root {
  --bg: #ffffff; --panel: #f6f8fa; --panel2: #eaeef2; --line: #d0d7de;
  --text: #1f2328; --muted: #57606a; --accent: #1a7f37; --accent2: #0969da;
  --danger: #cf222e; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- the top bar ------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 980px; margin: 0 auto; padding: 0 20px;
  min-height: 52px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brandmark { display: flex; align-items: baseline; gap: 10px;
             text-decoration: none; padding: 8px 0; }
.brandmark:hover { text-decoration: none; }
.brandmark b { font-size: 18px; letter-spacing: -0.4px; color: var(--text); }
.brandmark .leaf { color: var(--accent); }
.brandmark .motto { color: var(--muted); font-size: 13px; }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px;
  color: var(--muted); text-decoration: none;
}
.topbar nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.topbar nav a.active { color: var(--text); background: var(--panel); font-weight: 600; }

@media (max-width: 560px) {
  .brandmark .motto { display: none; }
}
