/* The manual page only. It loads css/style.css first for the tokens, the
   header and the footer, then overrides the app's chrome-sized headings —
   those are labels on a control surface, and this is a document.
   Design notes: docs/manual.md */

body.manual .beta-badge {
  cursor: default;
}

/* The app drops the tagline under 700px to buy the roll its height. Here the
   tagline is the page's subtitle — the only line saying what this document is
   — and a visitor arriving from a search result on a phone is exactly who
   needs it. It comes back at every width. */
body.manual .tagline {
  display: block;
  max-width: 74ch;
}

.manual-back {
  margin-left: auto;
  color: var(--ink-secondary);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.manual-back:hover,
.manual-back:focus-visible {
  color: var(--accent);
}

footer .manual-back {
  margin-left: 0;
}

.manual-body {
  display: block;
  max-width: 74ch;
  padding: 0.6rem 2rem 1rem;
  color: var(--ink-secondary);
}

.manual-body p,
.manual-body li,
.manual-body dd {
  max-width: 74ch;
}

.manual-body h2 {
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 1.25rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.manual-body h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.manual-body h4 {
  margin: 1.3rem 0 0.4rem;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.manual-body p {
  margin: 0 0 0.9rem;
}

.manual-body strong {
  color: var(--ink);
  font-weight: 600;
}

.manual-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.manual-body a:hover,
.manual-body a:focus-visible {
  color: var(--ink);
}

.manual-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink);
}

.manual-body kbd {
  padding: 0.05em 0.35em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-raised);
  font-family: inherit;
  font-size: 0.85em;
  color: var(--ink);
}

/* The one paragraph per section that carries the thesis rather than a
   detail. Set apart because a reader skimming for a control should still
   trip over the reason the app is shaped this way. */
.manual-body .lead {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  color: var(--ink);
}

/* Control reference: the term is the label as it reads in the app, so it is
   set in the app's own ink and never wraps away from its description. */
.manual-body dl {
  margin: 0 0 1.2rem;
}

.manual-body dt {
  margin: 1rem 0 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

.manual-body dd {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.manual-body .manual-steps,
.manual-body .manual-nots {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.manual-body .manual-steps li,
.manual-body .manual-nots li {
  margin-bottom: 0.5rem;
}

.manual-toc {
  margin: 0.4rem 0 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.manual-toc h2 {
  margin: 0 0 0.5rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.manual-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.manual-toc li {
  margin-bottom: 0.2rem;
  break-inside: avoid;
}

@media (max-width: 700px) {
  body.manual .tagline {
    font-size: 0.85rem;
  }

  .manual-body {
    padding: 0.6rem 1rem 1rem;
  }

  .manual-toc ol {
    columns: 1;
  }
}
