/* Plotloft documentation pages — long-form prose built on the site.css
   tokens, sharing the legal pages' measure and heading rhythm so the two
   prose sections of the site read as one thing.

   Docs need a few things the legal pages don't: file paths, keyboard keys,
   step lists, and callouts that separate "this is the important promise"
   from "this is the thing that bites people". */

.docs-main { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }

.docs-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.docs-main h1 {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 12px;
}
.docs-lede {
  font-size: 18px; color: var(--ink-soft); line-height: 1.6;
  margin: 18px 0 8px;
}

.docs-main h2 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px; line-height: 1.2;
  margin: 48px 0 12px; padding-top: 8px;
}
.docs-main h3 {
  font-weight: 600; font-size: 16px; margin: 28px 0 8px; color: var(--ink);
}
.docs-main p { margin: 0 0 14px; color: var(--ink-soft); }
.docs-main ul, .docs-main ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.docs-main li { margin: 0 0 8px; }
.docs-main strong { color: var(--ink); font-weight: 600; }
.docs-main a { color: var(--accent); }

/* The one-sentence answer that leads the page — same shape as the legal
   pages' plain-English summary, so the pattern is already familiar. */
.docs-answer {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px; margin: 28px 0 8px;
}
.docs-answer p { margin: 0; color: var(--ink-soft); }
.docs-answer p + p { margin-top: 10px; }
.docs-answer strong { color: var(--ink); }

/* File paths. Long Windows paths must wrap rather than force a scrollbar
   on phones, and they need to survive being copied out. */
code, .path {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 1.5px 5px; border-radius: 4px;
}
.path-block {
  display: block;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px; margin: 0 0 18px;
  color: var(--ink);
  overflow-wrap: anywhere; word-break: break-word;
}
.path-block .dim { color: var(--ink-dim); }
.path-block code { background: none; padding: 0; font-size: inherit; }

/* Menu paths and keys inside prose: File ▸ Open Project File… */
.menu {
  font-weight: 600; color: var(--ink);
  white-space: nowrap;
}

/* Callouts. .note = useful aside, .warn = this one actually bites. */
.docs-note, .docs-warn {
  border-radius: 10px; padding: 16px 20px; margin: 0 0 20px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}
.docs-warn { border-left: 3px solid var(--accent); }
.docs-note { border-left: 3px solid var(--ink-dim); }
.docs-note p:last-child, .docs-warn p:last-child { margin-bottom: 0; }
.docs-note .t, .docs-warn .t {
  font-weight: 600; color: var(--ink); margin-bottom: 6px;
}

/* Numbered procedures, with the step number pulled into the margin. */
.docs-steps { list-style: none; padding-left: 0; counter-reset: step; }
.docs-steps > li {
  position: relative; padding-left: 38px; margin-bottom: 14px;
  counter-increment: step;
}
.docs-steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  display: grid; place-items: center;
}

/* Fact table (locations, intervals) — same rules as the legal tables. */
.docs-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 14.5px; }
.docs-table th, .docs-table td {
  text-align: left; vertical-align: top;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.docs-table th { color: var(--ink); font-weight: 600; }
.docs-table td { color: var(--ink-soft); }
.docs-table td code { font-size: 12.5px; overflow-wrap: anywhere; }
.docs-table-wrap { overflow-x: auto; }

/* Index page: one card per article. */
.docs-index-list { list-style: none; padding: 0; margin: 28px 0 0; }
.docs-index-list li { margin: 0 0 12px; }
.docs-index-list a {
  display: block; text-decoration: none;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.docs-index-list a:hover { border-color: var(--accent); transform: translateY(-1px); }
.docs-index-list .t {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--ink); margin-bottom: 4px;
}
.docs-index-list .d { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* Back-to-docs breadcrumb. */
.docs-crumb { font-size: 14px; margin-bottom: 18px; }
.docs-crumb a { color: var(--ink-soft); text-decoration: none; }
.docs-crumb a:hover { color: var(--accent); }

.docs-foot-help {
  margin-top: 56px; padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim); font-size: 13.5px;
}
