.setup-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
.setup-page .site-shell { max-width: 1280px; }
.kicker, .guide-nav > p { font-family: var(--mono); font-size: .875rem; letter-spacing: .08em; }
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 740px); gap: clamp(32px, 6vw, 88px); padding-block: 56px 72px; }
.guide-nav { align-self: start; position: sticky; top: 32px; max-height: calc(100vh - 48px); overflow-y: auto; padding-top: 8px; }
.guide-nav > p { color: var(--fg-label); text-transform: uppercase; margin: 0 0 20px; }
.guide-nav a { display: flex; gap: 12px; padding: 9px 0; font-size: .9375rem; text-decoration: none; }
.guide-nav a span { color: var(--accent-text); font-variant-numeric: tabular-nums; }
/* The parts of "How it works", indented under it. */
.guide-nav a.is-sub, .guide-toc a.is-sub { padding-block: 5px; padding-left: 30px; font-size: .875rem; color: var(--fg-docs); }
.guide { min-width: 0; font-size: 1.0625rem; }
.kicker { color: var(--accent-text); text-transform: uppercase; margin: 0 0 12px; }
.guide h1 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.06em; margin: 0 0 20px; }
.guide h1 span { color: var(--accent-text); }
.guide-heading > p:last-child { max-width: 620px; color: var(--fg-docs); font-size: 1.125rem; }
.guide p { margin: 0 0 18px; }
.prerequisites { border: 1px solid var(--line); border-left: 3px solid var(--accent-text); padding: 20px 24px; margin: 28px 0 36px; }
.prerequisites strong { display: block; font-size: .9375rem; margin-bottom: 5px; }
.prerequisites p { font-size: 1rem; margin: 0; color: var(--fg-docs); }
.guide section { scroll-margin-top: 24px; padding-block: 12px 26px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.guide section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.guide h2 { display: flex; align-items: baseline; gap: 16px; font-size: 1.4rem; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 20px; }
.step-number { font-family: var(--mono); color: var(--accent-text); font-size: .9375rem; letter-spacing: 0; }
.guide blockquote { margin: 22px 0; padding: 20px 24px; background: var(--code-bg); border-left: 3px solid var(--acid); color: var(--code-fg); }
.guide blockquote p { margin: 0; }
.guide details { border: 1px solid var(--line); margin-block: 24px 8px; padding: 14px 18px; }
.guide summary { cursor: pointer; font-size: .9375rem; font-weight: 600; }
.guide details[open] summary { margin-bottom: 18px; }
.guide details p { font-size: 1rem; }
.guide pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--code-bg); color: var(--paper); padding: 16px; margin: 12px 0 0; font-size: .875rem; line-height: 1.7; }
.guide code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.guide-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--line); padding-top: 24px; font-size: .875rem; color: var(--fg-label); }
.guide-footer > span:first-child { font-family: var(--display); }
.setup-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
/* The copy button sits inside the dark prompt box in both themes. */
.setup-page .prompt-box .copy-button:focus-visible { outline-color: var(--acid); }
.skip-link { position: absolute; left: 20px; top: -100px; background: var(--accent); color: var(--on-accent); padding: 12px 20px; z-index: 5; }
.skip-link:focus { top: 12px; }
@media (max-width: 800px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .guide-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .guide-nav > p { flex-basis: 100%; margin-bottom: 0; }
  .guide-nav a { padding: 0; }
  .guide { font-size: 1rem; }
  .guide h2 { font-size: 1.25rem; gap: 12px; }
  .prerequisites, .guide blockquote { padding: 18px; }
}
/* How-it-works page: sub-steps, the folder table and the glossary list. */
.guide h3 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.01em; margin: 26px 0 10px; }
.guide h3:first-of-type { margin-top: 18px; }
.guide .layout { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .9375rem; }
.guide .layout th, .guide .layout td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: normal; }
.guide .layout thead th { font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-label); }
.guide .layout th code { overflow-wrap: anywhere; }
.guide .glossary { margin: 0 0 24px; }
.guide .glossary dt { font-weight: 600; margin-top: 18px; }
.guide .glossary dd { margin: 4px 0 0; color: var(--fg-docs); }
@media (max-width: 800px) {
  .guide .layout, .guide .layout thead, .guide .layout tbody, .guide .layout tr, .guide .layout th, .guide .layout td { display: block; }
  .guide .layout thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide .layout th { padding-bottom: 2px; border-bottom: 0; }
  .guide .layout td { padding-top: 0; }
}
/* Install page: the copy-to-clipboard prompt and plain lists. */
.prompt-box { margin: 22px 0 8px; border: 1px solid var(--acid); background: var(--code-bg); }
.prompt-box pre { margin: 0; padding: 20px 24px; background: none; font-size: .9375rem; color: var(--code-fg); }
.copy-button { margin: 0 0 20px 24px; padding: 12px 20px; border: 1px solid var(--acid); background: var(--acid); color: var(--black); font-family: var(--mono); font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy-button:hover { background: transparent; color: var(--acid); }
.copy-status { margin-left: 14px; font-size: .9375rem; color: var(--acid); }
.prompt-note { font-size: 1rem; color: var(--fg-docs); margin: 14px 0 0; }
.guide ul { margin: 0 0 18px; padding-left: 22px; }
.guide li { margin-bottom: 6px; }
@media (max-width: 800px) {
  .prompt-box pre { padding: 18px; }
  .copy-button { margin-left: 18px; }
}

/* The one docs page (/docs, September 28): install, setup and how it works together.
   Copy page sits on the kicker line; it copies the page as Markdown (build.sh
   writes it into #docs-markdown) and needs JavaScript, so it is hidden without. */
.guide-kicker-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 12px; }
.guide-kicker-row .kicker { margin: 0; }
.page-copy { display: none; align-items: center; }
.js .page-copy { display: flex; }
/* "Copied." shows to the left of the button; while it is empty it takes no room. */
.page-copy .copy-status { order: -1; margin: 0; color: var(--accent-text); font-size: .875rem; }
.page-copy .copy-status:not(:empty) { margin-right: 12px; }
.page-copy-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 8px 13px 7px; border: 1px solid var(--line); background: none; color: var(--fg-soft); font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.page-copy-button:hover, .page-copy-button:focus-visible { border-color: var(--accent-text); color: var(--accent-text); }
.page-copy-button svg { display: block; flex: none; }
.js-only { display: none; }
.js .js-only { display: inline; }
/* "Your coding agent doesn't need this page": the prerequisites box, a step closer to the heading. */
.agent-note { margin-top: 24px; }
/* Phones: the on-this-page links, collapsed under the heading (the sidebar is hidden). */
.guide details.guide-toc { display: none; }
/* How it works: its parts are sub-sections of step 06, without the step rules. */
.guide section.sub { margin: 34px 0 0; padding: 0; border-bottom: 0; }
.guide section.sub > h3 { margin: 0 0 12px; font-size: 1.2rem; line-height: 1.35; letter-spacing: -.015em; }
.guide h4 { margin: 22px 0 8px; font-size: 1rem; line-height: 1.4; letter-spacing: -.01em; }
/* Short prompts ("Finish sannr setup.", the map prompt): the install prompt's box. */
.prompt-box.is-short pre { padding-block: 16px; }
@media (max-width: 800px) {
  .guide-nav { display: none; }
  .guide details.guide-toc { display: block; margin: 0 0 28px; padding: 12px 16px; }
  .guide-toc summary { font-family: var(--mono); font-size: .875rem; font-weight: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-label); }
  .guide details.guide-toc[open] summary { margin-bottom: 10px; }
  .guide-toc nav { display: flex; flex-direction: column; }
  .guide-toc a { display: flex; gap: 12px; padding: 6px 0; font-size: .9375rem; text-decoration: none; }
  .guide-toc a span { color: var(--accent-text); font-variant-numeric: tabular-nums; }
  .guide-toc a.is-sub { padding-block: 4px; }
}
