/* ── Guides — keyboard cheat sheets, styled from the shared tokens ── */

.guides {
  color: var(--sandy-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.guides h1 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--sandy-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.guides .subtitle {
  text-align: center;
  color: var(--sandy-text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.guides .desc {
  color: var(--sandy-text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Visual Example ── */
.guides .visual-example {
  background: var(--sandy-surface);
  border: 1px solid var(--sandy-border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin: 0 auto 2rem;
  max-width: 720px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  color: var(--sandy-text-muted);
}
.guides .visual-example .hl { color: var(--sandy-text); }
.guides .visual-example .add { color: var(--sandy-success); }
.guides .visual-example .del { color: var(--sandy-danger); }
.guides .visual-example .warn { color: var(--sandy-warning); }
.guides .visual-example .dim { color: var(--sandy-border-strong); }
.guides .visual-example .accent { color: var(--sandy-accent); }

/* ── Card Grid ── */
.guides .grid {
  display: block; /* Tailwind also defines .grid as display: grid, which ignores CSS columns */
  columns: 3;
  column-gap: 1.2rem;
}
.guides .card {
  border: 1px solid var(--sandy-border);
  border-radius: 8px;
  padding: 1.2rem;
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
.guides .card h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sandy-text-muted);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sandy-border);
}

/* ── Tables ── */
.guides table { width: 100%; border-collapse: collapse; }
.guides tr:not(:last-child) td { border-bottom: 1px solid var(--sandy-border); }
.guides td { padding: 0.3rem 0; vertical-align: top; }
.guides td:first-child {
  white-space: nowrap;
  padding-right: 1rem;
  font-weight: 500;
  min-width: 120px;
  color: var(--sandy-text);
}
.guides td:last-child { color: var(--sandy-text-muted); }

/* ── Inline elements ── */
.guides kbd {
  background: var(--sandy-surface);
  border: 1px solid var(--sandy-border-strong);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--sandy-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.guides .sep { color: var(--sandy-text-muted); margin: 0 0.15rem; }
.guides .leader {
  background: var(--sandy-accent-subtle);
  border-color: var(--sandy-accent);
  color: var(--sandy-accent);
}
.guides .note {
  color: var(--sandy-text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.5rem;
}
.guides code {
  background: var(--sandy-surface);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--sandy-text);
}
.guides .docs-link {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}
.guides .docs-link a {
  color: var(--sandy-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--sandy-border-strong);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.guides .docs-link a:hover {
  color: var(--sandy-text);
  border-color: var(--sandy-text-muted);
}
.guides .docs-link a + a { margin-left: 1.5rem; }
.guides .tip {
  text-align: center;
  color: var(--sandy-text-muted);
  margin-top: 2rem;
  font-size: 0.8rem;
}
.guides .tip a {
  color: var(--sandy-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--sandy-border-strong);
}
.guides .tip a:hover {
  color: var(--sandy-text);
}

/* ── Responsive ── */
@media (max-width: 2800px) {
  .guides .grid { columns: 2; }
}
@media (max-width: 700px) {
  .guides .grid { columns: 1; }
}
