/* docs.css — supplements bhr.css for the /docs/ section */

.docs-subnav {
  border-bottom: 1px solid #e0e0e0;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.docs-subnav a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  padding: 10px 16px 10px 0;
  margin-right: 8px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.docs-subnav a:hover { color: #333; }
.docs-subnav a.active {
  color: #000;
  border-bottom-color: #000;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 90px);
}

.docs-sidebar {
  border-right: 1px solid #e0e0e0;
  padding: 36px 0;
}

.docs-sidebar .nav-section {
  margin-bottom: 28px;
}

.docs-sidebar .nav-label {
  font-family: var(--mono);
  font-size: var(--lbl);
  letter-spacing: var(--lbl-sp);
  text-transform: uppercase;
  color: #bbb;
  padding: 0 var(--pad) 8px;
  display: block;
}

.docs-sidebar .nav-home {
  display: block;
  padding: 7px var(--pad);
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.docs-sidebar .nav-home:hover { color: #000; }
.docs-sidebar .nav-home.active { color: #000; border-left-color: #000; }

.docs-sidebar a {
  display: block;
  padding: 7px var(--pad);
  font-size: 0.875rem;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.docs-sidebar a:hover { color: #000; }
.docs-sidebar a.active {
  color: #000;
  font-weight: 500;
  border-left-color: #000;
}

.docs-content {
  padding: 52px 56px 80px;
  max-width: 800px;
}

/* Typography */
.docs-content .eyebrow {
  font-family: var(--mono);
  font-size: var(--lbl);
  letter-spacing: var(--lbl-sp);
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.docs-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.docs-content .lead {
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
  color: #444;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e0e0e0;
}

.docs-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 48px;
  border-top: 1px solid #e0e0e0;
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }

.docs-content h3 {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: var(--lbl-sp);
  text-transform: uppercase;
  color: #888;
  margin: 28px 0 10px;
}

.docs-content p {
  font-size: 0.97rem;
  line-height: 1.8;
  font-weight: 300;
  color: #222;
  margin-bottom: 16px;
}

.docs-content strong { font-weight: 600; color: #000; }
.docs-content em { font-style: italic; }

.docs-content ul, .docs-content ol {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}
.docs-content li {
  font-size: 0.97rem;
  line-height: 1.75;
  font-weight: 300;
  color: #222;
  padding: 5px 0 5px 18px;
  position: relative;
  border-bottom: 1px solid #f4f4f4;
}
.docs-content li::before { content: "–"; position: absolute; left: 0; color: #ccc; }

.docs-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0;
}

.docs-content code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 2px;
  color: #444;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 16px 0 28px;
}
.docs-content th {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--lbl);
  letter-spacing: var(--lbl-sp);
  text-transform: uppercase;
  color: #999;
  padding: 8px 12px;
  border-bottom: 1px solid #111;
}
.docs-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.6;
}
.docs-content tr:last-child td { border-bottom: none; }
.docs-content td:first-child { font-weight: 500; }

/* Homepage doc grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.doc-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.1s;
}
.doc-card:hover { border-color: #999; }
.doc-card .card-label {
  font-family: var(--mono);
  font-size: var(--lbl);
  letter-spacing: var(--lbl-sp);
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}
.doc-card .card-title {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 6px;
}
.doc-card .card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: 300;
  color: #666;
}

@media (max-width: 680px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { border-right: none; border-bottom: 1px solid #e0e0e0; padding: 20px 0; }
  .docs-content { padding: 32px var(--pad) 60px; }
}
