/* assets/css/guide.css — the public user guide page (guide.php).
   The chapters are styled by help.css (generated with the guide); this file
   only adds the page around them: a top bar, the "try it" column and a footer. */
body.guide-public { background: var(--bg); color: var(--text); min-height: 100vh; }

.guide-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 22px; min-height: 60px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.guide-brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none;
}
.guide-brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--accent); background: var(--accent-glow); border: 1px solid var(--accent);
}
.guide-brand .sub { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.guide-bar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.guide-bar-tools .btn { text-decoration: none; }

.guide-content { max-width: 1060px; margin: 0 auto; padding: 26px 20px 40px; }

.guide-try-p { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.guide-try form { margin: 0; }
.guide-try-btn {
  width: 100%; display: flex; gap: 12px; align-items: center; padding: 9px 12px; text-align: start;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-soft, var(--line));
  color: var(--text); text-decoration: none; font: inherit; cursor: pointer;
}
.guide-try-btn:hover, .guide-try-btn:focus-visible { border-color: var(--accent); outline: none; }
.guide-try-btn .n {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace; display: grid; place-items: center;
}
.guide-try-btn b { display: block; font-weight: 650; font-size: 14px; }
.guide-try-btn small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.guide-lang-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.guide-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px;
  max-width: 1060px; margin: 0 auto; padding: 18px 20px 34px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.guide-foot a { color: var(--text); }
.guide-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .guide-bar { padding: 8px 12px; }
  .guide-brand .sub { display: none; }
  .guide-bar-tools .btn-light { display: none; }
  .guide-content { padding: 16px 14px 30px; }
}
