/* Guide page only: tool picker, numbered steps, location labels.
   Loaded after site.css; reuses its tokens. */

.tool-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; padding: 0; list-style: none; }
.tool-pick a { display: flex; flex-direction: column; gap: 6px; min-height: 96px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; }
.tool-pick a:hover { border-color: var(--accent); }
.tool-pick a:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.tool-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; }
.tool-verdict { font-size: var(--text-meta); color: var(--fg-2); }

.tool-sec { border-top: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--font-display); text-align: center; line-height: 30px; }
.guide-page .steps h3 { margin: 0 0 10px; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.where { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-body); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.steps .cmd { margin-bottom: 10px; }
.run-record { font-size: var(--text-meta); color: var(--fg-2); margin-top: 4px; }

.guide-page .copy { min-height: 44px; }
.rule-box { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rule-box > :last-child { margin-bottom: 0; }
.more .technical-detail { border-top: 1px solid var(--line); }
.more .technical-detail:last-of-type { border-bottom: 1px solid var(--line); }
.more .technical-detail > div { padding-bottom: 24px; }

@media (max-width: 959px) {
  .tool-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tool-pick { grid-template-columns: minmax(0, 1fr); }
  .tool-pick a { min-height: 72px; }
  .steps > li { padding-left: 42px; }
}
.technical-detail > summary h3 { margin: 0; font-size: inherit; letter-spacing: inherit; }

/* On-this-page navigation (#1767). Compact list on top below 1100px,
   sticky left column (cols 1-3, content 4-12) from 1100px. */
.guide-layout { padding-top: 8px; }
.guide-body .wrap { max-width: none; padding-inline: 0; }
.guide-toc { margin: 0 0 8px; padding: 16px 0; border-block: 1px solid var(--line); font-size: .9rem; }
.guide-toc-title { margin: 0 0 4px; font-size: var(--text-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.guide-toc a { display: flex; align-items: center; min-height: 44px; color: var(--fg-2); text-decoration: none; }
.guide-toc a:hover { color: var(--fg); text-decoration: underline; }
.guide-toc a[aria-current="true"] { color: var(--accent); }
.guide-toc a:focus-visible { outline-offset: -3px; }

@media (min-width: 1100px) {
  .guide-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .guide-toc { grid-column: 1 / 4; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; margin: 62px 0 0; padding: 0; border: 0; }
  .guide-toc ol { display: block; border-left: 1px solid var(--line); }
  .guide-toc a { padding-left: 16px; margin-left: -1px; border-left: 2px solid transparent; }
  .guide-toc a[aria-current="true"] { border-left-color: var(--accent); }
  .guide-body { grid-column: 4 / 13; min-width: 0; }
}
/* Relocated start-page explanations share the guide's reading column. */
.guide-body .section-heading { display: block; }
.guide-body .section-heading > p { max-width: var(--measure); margin-top: 20px; }
.guide-body .how-grid { display: block; }
.guide-step-title { display: inline-flex; align-items: center; gap: 12px; }
.guide-body .keep-row { gap: var(--gap); }
.guide-body .story-sec, .guide-body .technical-sec { background: var(--bg); }
.guide-body .story-grid, .guide-body .faq-layout { display: block; }
.guide-body .faq-intro { position: static; }
.guide-body .faq { margin-top: 32px; }
.guide-body .detail-body .grid-12 { display: block; }
.guide-body .tools-table { font-size: .9rem; }
.guide-body .tools-table th, .guide-body .tools-table td { padding-inline: 8px; }
.guide-body .tools-table tbody th { white-space: normal; }
.guide-body #measured .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .guide-body .tools-table th, .guide-body .tools-table td { padding-inline: 0; }
  .guide-body .tools-table td { padding-left: 9rem; }
  .guide-body #measured .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Beginner glossary restored from the former home page. */
.glossary { max-width: 72ch; margin-block: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.glossary > summary { cursor: pointer; color: var(--fg-2); }
.glossary dl { margin: 16px 0 0; }
.glossary dl > div + div { margin-top: 12px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--fg-2); }
