/* The guide (guide.html): the whitepaper's look (whitepaper.css), plus a search, tables of keys and two columns. */
.guide-hero { min-height: 62vh; }
.guide-search { width: min(560px, 100%); margin-top: 26px; }
.guide-search input {
  width: 100%;
  padding: 14px 18px;
  font: 500 17px var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  outline: none;
}
.guide-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18); }
.guide-none { margin: 12px 0 0; color: var(--yellow); font-weight: 700; }

/* The sections stay in reach on a phone too: the links scroll sideways under the bar. */
@media (max-width: 760px) {
  .topnav { flex-wrap: wrap; row-gap: 8px; padding: 10px 16px; }
  .topnav .links { display: flex; order: 3; width: 100%; margin: 0; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .topnav .links::-webkit-scrollbar { display: none; }
  .topnav .links a { flex: none; }
}
.section { scroll-margin-top: 90px; }

.guide-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .guide-cols { grid-template-columns: 1fr; } }
.guide-cols .card p { color: var(--muted); font-size: 15px; }
.guide-wide { margin-top: 16px; }
.guide-wide p { color: var(--muted); }
.guide-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.guide-link { color: var(--cyan); font-weight: 700; text-decoration: none; }
.guide-link:hover { text-decoration: underline; }

.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.keys tr:last-child td { border-bottom: 0; }
.keys td:first-child { width: 38%; padding-right: 12px; font-weight: 700; white-space: nowrap; }
.keys td:last-child { color: var(--muted); }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  font: 700 13px var(--body);
  text-align: center;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid rgba(246, 240, 255, 0.3);
  border-bottom-width: 3px;
  border-radius: 6px;
}
@media (max-width: 520px) { .keys td:first-child { white-space: normal; } }

[hidden] { display: none !important; }
