/* tokenholder.io/docs — shared docs styles
 *
 * Inherits the palette + fonts from /style.css. Adds docs-specific
 * layout: top bar, left sidebar nav, article typography.
 */

.docs-body {
  background: var(--ink);
  color: var(--mist);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==== Top bar ==== */
.docs-top {
  border-bottom: 1px solid #1c1c1c;
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.docs-top-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.docs-wordmark {
  font-family: var(--text-serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.docs-wordmark .tag {
  font-family: var(--text-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--amber);
  padding: 2px 8px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  text-transform: uppercase;
}
.docs-wordmark a {
  border-bottom: none;
  color: inherit;
}
.docs-top nav {
  display: flex;
  gap: 20px;
  font-family: var(--text-mono);
  font-size: 13px;
}
.docs-top nav a {
  color: var(--fog);
  border-bottom: none;
}
.docs-top nav a:hover { color: var(--ember); }

/* ==== Main layout ==== */
.docs-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ==== Left sidebar ==== */
.docs-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
}
.docs-sidebar-group {
  margin-bottom: 28px;
}
.docs-sidebar-group-title {
  font-family: var(--text-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 10px;
}
.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-sidebar li {
  margin: 0;
}
.docs-sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--fog);
  font-size: 14px;
  border-bottom: none;
  transition: background 150ms ease, color 150ms ease;
}
.docs-sidebar a:hover {
  background: rgba(217, 119, 6, 0.08);
  color: var(--mist);
}
.docs-sidebar a.current {
  background: rgba(217, 119, 6, 0.14);
  color: var(--ember);
  font-weight: 500;
}

/* ==== Article typography ==== */
.docs-article {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}
.docs-article h1 {
  font-family: var(--text-serif);
  font-size: 44px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.docs-article .docs-subtitle {
  font-size: 18px;
  color: var(--fog);
  margin: 0 0 36px;
  font-style: italic;
}
.docs-article h2 {
  font-family: var(--text-serif);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  padding-top: 8px;
  border-top: 1px solid #1c1c1c;
}
.docs-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}
.docs-article h3 {
  font-family: var(--text-sans);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 28px 0 8px;
  letter-spacing: -0.005em;
}
.docs-article p {
  margin: 0 0 18px;
  color: var(--mist);
}
.docs-article em { color: var(--ember); font-style: normal; font-weight: 500; }
.docs-article strong { color: #fff; font-weight: 600; }
.docs-article a {
  color: var(--ember);
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}
.docs-article a:hover { color: #fff; border-bottom-color: var(--ember); }
.docs-article ul, .docs-article ol {
  padding-left: 22px;
  margin: 0 0 18px;
  color: var(--mist);
}
.docs-article li { margin: 4px 0; }
.docs-article code {
  font-family: var(--text-mono);
  font-size: 14px;
  background: rgba(217, 119, 6, 0.08);
  color: var(--ember);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(217, 119, 6, 0.18);
}
.docs-article pre {
  background: var(--graphite);
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 16px 0 24px;
  font-family: var(--text-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}
.docs-article pre code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.docs-article blockquote {
  border-left: 3px solid var(--amber);
  background: rgba(217, 119, 6, 0.05);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 4px;
}
.docs-article blockquote p:last-child { margin: 0; }

.docs-note {
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--mist);
}
.docs-note .label {
  display: inline-block;
  font-family: var(--text-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ember);
  margin-right: 8px;
  text-transform: uppercase;
}

/* ==== Footer ==== */
.docs-foot {
  border-top: 1px solid #1c1c1c;
  padding: 24px 28px;
  font-family: var(--text-mono);
  font-size: 12px;
  color: var(--fog);
  text-align: center;
}
.docs-foot a { color: var(--ember); border-bottom: none; }

/* ==== Hub / landing of the docs site ==== */
.docs-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 24px;
}
.docs-hub-card {
  background: var(--graphite);
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 22px 22px 20px;
  transition: border-color 180ms ease, transform 180ms ease;
  display: block;
  border-bottom: 1px solid #262626;
}
.docs-hub-card:hover {
  border-color: var(--amber);
  color: inherit;
}
.docs-hub-card .kind {
  font-family: var(--text-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 8px;
}
.docs-hub-card h3 {
  font-family: var(--text-serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.docs-hub-card p {
  color: var(--fog);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .docs-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-sidebar {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid #1c1c1c;
  }
  .docs-hub-grid { grid-template-columns: 1fr; }
  .docs-article h1 { font-size: 34px; }
}
