/* Docs-page note body. The app shell (rail, header, drawer) and the theme
   palette live in shell.css, which is loaded first; this file only styles the
   "note" that the docs page renders inside the editor pane. */

.note-title {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em;
  margin: 0 0 4px; line-height: 1.2;
}

/* ---- Note body: ported from the editor's .ProseMirror styles ---- */
.note { position: relative; font-size: 17px; line-height: 1.65; padding-bottom: 8vh; }
.note p { margin: 0 0 1rem; }
.note h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.note h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.note strong { font-weight: 700; }
.note hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.note blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1.1rem; margin: 1.25rem 0;
  color: var(--fg);
}
.note blockquote p:last-child { margin-bottom: 0; }

.note code {
  background: var(--code-bg);
  padding: 0.1em 0.35em; border-radius: 3px;
  font-family: var(--font-mono); font-size: 0.9em;
}
.note kbd {
  display: inline-block;
  background: var(--code-bg);
  border: 1px solid var(--rule); border-bottom-width: 2px;
  padding: 0 0.45em; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.82em; line-height: 1.5;
  color: var(--fg);
}

.note ul, .note ol { padding-left: 1.5rem; margin: 1rem 0; }
.note li { margin: 0.25rem 0; padding-left: 0.25rem; }
.note ul { list-style: disc; }
.note ol { list-style: decimal; }
.note ul li::marker { color: var(--accent); }
.note ol li::marker { color: var(--muted); font-weight: 600; }

.note table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: 0.95rem; }
.note th, .note td { border: 1px solid var(--rule); padding: 0.6rem 0.8rem; vertical-align: top; text-align: left; }
.note th { background: var(--th-bg); font-weight: 600; }

/* Feature demo clips — silent, looping captures cropped to the relevant
   component (no fake browser frame). The wrapper sets rounded corners and
   a soft float so the dark-app clip integrates cleanly on either theme. */
.demo { margin: 1.5rem 0 2.5rem; }
.demo video {
  display: block; width: 100%; height: auto;
  border: 2px solid var(--fg);
  /* Flat, un-blurred offset shadow: a graphic offset, not a soft float. */
  box-shadow: 10px 10px 0 var(--fg);
}
/* Smaller clips (tight strips like the inserter loop): cap the max width so
   they don't sprawl across the column. */
.demo.tight { max-width: 560px; margin-left: auto; margin-right: auto; }
/* The publish dialog clip is a square-ish card; center it and cap width. */
.demo.dialog { max-width: 380px; margin-left: auto; margin-right: auto; }

/* Step list — numbered guidance for procedural sections. Selectors are
   scoped tighter than `.note ol` above so the decimal marker is suppressed
   and the boxes (counter() in ::before) carry the numbering instead. */
.note ol.steps { list-style: none; padding: 0; margin: 1rem 0 1.25rem; counter-reset: step; }
.note ol.steps li {
  position: relative; padding: 0.7rem 0 0.7rem 2.6rem; margin: 0;
  border-top: 1px solid var(--rule); color: var(--muted);
}
.note ol.steps li:first-child { border-top: 0; }
.note ol.steps li::marker { content: ""; }
.note ol.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.7rem;
  width: 1.7rem; height: 1.7rem; line-height: calc(1.7rem - 2px); text-align: center;
  color: var(--accent); border: 1px solid var(--rule); border-radius: 6px;
  font-size: 0.82rem; font-weight: 600;
}
.note ol.steps li strong { color: var(--fg); }

/* Inline ToC chips at the top — link to anchors below. */
.toc {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 1.25rem 0 0;
}
.toc a {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--rule);
  color: var(--muted); text-decoration: none; font-size: 13px;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.toc a:hover { color: var(--fg); border-color: var(--accent); text-decoration: none; background: var(--surface-2); }

section.doc { scroll-margin-top: 1.5rem; }
