/* The Togeda guide at togeda.app/docs, in the style of daryl.cv (Leo 2026-10-28): one quiet column,
   body-size headings, gray for the second line, underlined links, no buttons or boxes.
   Always dark, the app's gray, so its screenshots sit in the page. Square corners, weights 400-500.
   Font: SF Pro on Apple devices, an installed Inter elsewhere, else Inter from Google Fonts
   (build.mjs links it; browsers only fetch it when nothing before it in the list is there). */
:root {
  color-scheme: dark;
  --bg: #1e1e1e;
  --text: #e8e8e8;
  --text2: #8e8e8e;
  --line: #333;
  --code: #2a2a2a;
  --text-w: 560px;  /* running text */
  --wide-w: 880px;  /* pictures and tables */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", Inter, sans-serif;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 56px; padding: 32px; max-width: 1240px; }
aside { display: flex; flex-direction: column; gap: 32px; }
header { display: flex; flex-direction: column; gap: 2px; }
.names { display: flex; flex-direction: column; gap: 2px; }
.names span { color: var(--text2); }
.brand { text-decoration: none; }
.jump { display: none; }
nav#contents { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 32px; }
nav#contents .title { color: var(--text2); margin-bottom: 4px; }
nav#contents a { color: var(--text2); text-decoration: none; }
nav#contents a:hover { color: var(--text); }
nav#contents a[aria-current] { color: var(--text); }
nav#contents a[aria-current]::before { content: "– "; }
nav#contents .open { margin-top: 16px; color: var(--text); text-decoration: underline; }

main { min-width: 0; max-width: var(--wide-w); }
main > :is(h1, h2, h3, p, ul, ol, .pager) { max-width: var(--text-w); }
h1, h2, h3 { font-size: inherit; line-height: inherit; font-weight: 500; text-wrap: balance; }
h1 { margin: 0 0 2px; }
h1 + p { color: var(--text2); }
h2 { margin: 36px 0 8px; }
h3 { margin: 24px 0 6px; color: var(--text2); }
h2, h3 { scroll-margin-top: 24px; }
p { margin: 0 0 14px; }
main p, main li, td { overflow-wrap: anywhere; }
ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul > li { padding-left: 16px; position: relative; }
ul > li::before { content: "–"; position: absolute; left: 0; color: var(--text2); }
ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
ol > li::marker { color: var(--text2); }
strong { font-weight: 500; }
code { font: 13px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--code); padding: 1px 5px; }
figure { margin: 20px 0 26px; display: flex; flex-direction: column; gap: 6px; }
figure a { display: block; cursor: zoom-in; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
figcaption { color: var(--text2); font-size: 13px; }
.table { overflow-x: auto; margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 400; color: var(--text2); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; color: var(--text2); }
.pager a { color: var(--text); }
footer { grid-column: 2; max-width: var(--wide-w); display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text2); }
footer a { color: var(--text2); }

/* Phones: one column. The name and Contents on top, the page list under the page, every name in full. */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { display: flex; flex-direction: column; padding: 24px 20px 32px; }
  aside { display: contents; }
  header { order: 0; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
  .jump { display: inline; }
  main { order: 1; }
  nav#contents { order: 2; position: static; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
  nav#contents a { padding: 4px 0; }
  nav#contents .open { margin-top: 12px; }
  footer { order: 3; }
  main > :is(h1, h2, h3, p, ul, ol, .pager) { max-width: none; }
  figure { margin: 16px 0 22px; }
  .pager { flex-direction: column; gap: 6px; }
}
