/* ═══════════════════════════════════════════
   Page: Docs
   ═══════════════════════════════════════════ */

.docs-nav,
.docs-nav a,
.docs-article,
.docs-article h1,
.docs-article h2,
.docs-article p,
.docs-article li,
.token-spec,
.token-label,
.token-value {
  font-family: "Geist", "Trebuchet MS", "Segoe UI", sans-serif;
}

main.docs-layout {
  display: grid;
  --docs-nav-width: clamp(220px, 20vw, 280px);
  grid-template-columns: var(--docs-nav-width) minmax(0, 1fr) calc(var(--docs-nav-width) * 1.6);
  gap: calc(var(--docs-nav-width) * 0.5);
  align-items: start;
  padding-left: calc(var(--docs-nav-width) * 0.5);
}

.docs-nav {
  width: var(--docs-nav-width);
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--docs-nav-bg);
  border: 2px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-nav-title {
  font-weight: 800;
  color: var(--color-heading);
  font-size: 16px;
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-nav a {
  color: var(--docs-article-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.docs-nav .docs-sub-link {
  font-size: 12px;
  font-weight: 600;
  color: #6b3b05;
  padding: 4px 10px;
}

.docs-nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-heading);
}

.docs-article {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-height: none;
  overflow: visible;
}

.docs-spacer-right {
  width: 100%;
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.docs-article h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--color-heading);
  margin: 0 0 12px;
}

.docs-article h2 {
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--docs-article-text);
  margin: 18px 0 8px;
}

.docs-article p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--docs-article-text);
  margin: 0 0 12px;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--docs-article-text);
}

.docs-article li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-weight: 600;
}

.docs-article strong {
  font-weight: 800;
}

.token-spec {
  display: grid;
  gap: 12px;
  background: var(--token-spec-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
}

.token-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 12px;
  align-items: start;
}

.token-label {
  font-weight: 800;
  color: var(--color-heading);
}

.token-value {
  font-weight: 700;
  color: var(--docs-article-text);
  word-break: break-all;
}

/* Brand Kit button */
.brand-kit-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-kit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 235px);
  height: 48px;
  padding: 0 24px;
  background: var(--color-primary);
  color: var(--cta-color);
  border-radius: 999px;
  border: 2px solid var(--cta-border);
  font-family: "Public Sans", sans-serif;
  font-size: 16.4292px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.3s ease, border 0.3s ease, border-radius 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.brand-kit-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(119, 61, 0, 0.3);
}

/* Responsive */
@media (max-width: 980px) {
  main.docs-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 0;
  }

  .docs-nav {
    position: relative;
    top: 0;
    max-height: none;
  }

  .docs-article {
    max-height: none;
  }

  .docs-spacer-right {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .token-row {
    grid-template-columns: 1fr;
  }
}
