/* The Togeda guide at togeda.app/docs. Colours follow the app (web/src/theme.css): dark first, square corners. */
:root {
  color-scheme: dark;
  --bg: #1e1e1e;
  --side: #252525;
  --line: #333;
  --text: #e8e8e8;
  --text2: #a8a8a8;
  --accent: #0a84ff;
  --code: #2c2c2c;
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #fff; --side: #f5f5f5; --line: #e2e2e2; --text: #1d1d1f; --text2: #5f5f63; --accent: #0066cc; --code: #f0f0f0; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 20px; background: var(--side); border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-weight: 500; font-size: 17px; }
.brand span { color: var(--text2); font-weight: 400; }
.open { background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 2px; font-size: 14px; font-weight: 500; }
.open:hover { text-decoration: none; filter: brightness(1.1); }
.wrap { display: flex; max-width: 1180px; margin: 0 auto; }
.toc { flex: none; width: 230px; padding: 24px 12px; position: sticky; top: 52px; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.toc a { color: var(--text2); padding: 6px 10px; border-radius: 2px; font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--side); text-decoration: none; }
.toc a[aria-current] { color: var(--text); background: var(--side); font-weight: 500; }
main { flex: 1; min-width: 0; padding: 28px 32px 64px; max-width: 860px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 500; margin: 0 0 20px; }
h2 { font-size: 22px; font-weight: 500; margin: 36px 0 10px; }
h3 { font-size: 18px; font-weight: 500; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }
strong { font-weight: 500; }
code { font: 14px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--code); padding: 1px 5px; border-radius: 2px; }
figure { margin: 18px 0 24px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; }
.table { overflow-x: auto; margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--text2); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  header { padding: 0 16px; }
  .wrap { flex-direction: column; }
  .toc { position: static; width: auto; flex-direction: row; overflow-x: auto; padding: 10px 16px; gap: 4px; border-bottom: 1px solid var(--line); }
  .toc a { white-space: nowrap; flex: none; }
  main { padding: 20px 16px 48px; }
  h1 { font-size: 26px; }
}
