/* Docs pages (/docs/). Loaded after style.css. */

.docs { max-width: 820px; margin: 0 auto; padding-top: 72px; padding-bottom: 96px; } /* sides come from .wrap */
.docs .eyebrow { margin-bottom: 14px; }
.docs h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.docs .lead { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; margin: 0 0 36px; }
.docs h2 { font-size: 1.3rem; font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 24px; }
.docs h3 { font-size: 1.02rem; font-weight: 700; margin: 26px 0 8px; }
.docs p, .docs li { color: var(--text-dim); line-height: 1.7; font-size: 0.97rem; }
.docs ul, .docs ol { margin: 8px 0 0; padding-left: 22px; }
.docs li { margin-bottom: 6px; }
.docs a { color: var(--accent-2); text-decoration: none; }
.docs a:hover { text-decoration: underline; }
.docs strong { color: var(--text); font-weight: 600; }
.docs code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Breadcrumb */
.docs-crumb { font-size: 0.88rem; color: var(--text-faint); margin: 0 0 18px; }
.docs-crumb a { color: var(--text-dim); }

/* On this page */
.docs-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 8px;
}
.docs-toc p { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }
.docs-toc ol { margin: 0; padding-left: 20px; }
.docs-toc li { margin-bottom: 2px; font-size: 0.93rem; }

/* Callouts */
.docs-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
}
.docs-note p { margin: 0; }
.docs-note p + p { margin-top: 8px; }
.docs-note--warn { border-left-color: var(--warning); }

/* Tables scroll sideways on phones instead of squashing */
.docs-table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.docs-table th, .docs-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-dim); line-height: 1.5; }
.docs-table th { background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.85rem; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table td:first-child { color: var(--text); font-weight: 600; }

/* Good / avoid lists */
.docs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.docs-split > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; }
.docs-split h3 { margin-top: 0; }
.docs-split .good h3 { color: var(--success); }
.docs-split .avoid h3 { color: var(--danger); }

/* Hub groups + cards */
.docs h2.docs-group { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 36px 0 12px; }
.docs h2.docs-group:first-of-type { margin-top: 0; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 0; }
.docs-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.docs a.docs-card:hover { border-color: var(--accent-2); text-decoration: none; transform: translateY(-2px); }
.docs-card h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--text); }
.docs-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; }

/* FAQ accordions reuse the homepage .faq-item look */
.docs .faq-list { display: grid; gap: 10px; margin: 12px 0 0; max-width: none; }
.docs .faq-answer p { font-size: 0.93rem; }

.docs-help { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .docs { padding-top: 48px; }
  .docs-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-card { transition: none; }
  .docs a.docs-card:hover { transform: none; }
}
