/* Extras: unified search palette, runbook generator.
   Uses the site's own colour variables, so light and dark mode both work. */

/* ---------- Ctrl+K palette (also opened by the header search box) ---------- */
.pal { position: fixed; inset: 0; z-index: 1200; background: rgba(8, 14, 18, .55); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pal[hidden] { display: none; }
.pal-box { width: 100%; max-width: 620px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-m, 0 18px 40px rgba(0, 0, 0, .3)); overflow: hidden; }
.pal-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; outline: none; }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: min(50vh, 420px); overflow-y: auto; }
.pal-item { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.pal-item.is-active { background: var(--accent-soft); }
.pal-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-g { flex: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pal-none { padding: 14px 12px; color: var(--muted); }
.pal-foot { padding: 9px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
body.pal-open-body { overflow: hidden; }

/* ---------- runbook generator ---------- */
.rb-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 14px; }
.rb-checks label { display: inline-flex; align-items: center; gap: 8px; }
.rb-out { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); }
.rb-out h2 { margin: 0 0 4px; }
.rb-meta { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.rb-phase { margin: 18px 0 0; }
.rb-phase h3 { margin: 0 0 8px; font-size: 1.02rem; }
.rb-list { list-style: none; margin: 0; padding: 0; }
.rb-list li { margin: 0 0 6px; }
.rb-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.rb-list input { margin-top: .3em; flex: none; }
.rb-list input:checked + span { color: var(--muted); text-decoration: line-through; }
.rb-actions { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media print {
  body.printing-rb .site-header, body.printing-rb .site-footer, body.printing-rb .side-browse, body.printing-rb .page-head,
  body.printing-rb .tool > :not(.rb-out), body.printing-rb .back-to-top, body.printing-rb .cli-launch-btn, body.printing-rb .feedback-prompt,
  body.printing-rb .tool-main > :not(.tool), body.printing-rb .popout-row { display: none !important; }
  body.printing-rb .with-side { display: block; }
  body.printing-rb .rb-out { border: 0; padding: 0; }
}
