/* Docs layout: sticky sidebar + prose main column */
.docs-layout {
  display: flex; gap: 3rem; max-width: 1300px;
  margin: 0 auto; padding: 110px 2rem 4rem;
  position: relative; z-index: 1;
}
.docs-sidebar { width: 250px; flex-shrink: 0 }
.docs-sidebar-inner { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: .5rem }
.docs-home-link {
  display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}
.docs-sec h4 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
  margin: 1.25rem 0 .4rem; opacity: .8;
}
.docs-sec a {
  display: block; color: var(--grey-light); font-size: 1.05rem;
  padding: .28rem 0 .28rem .75rem; border-left: 2px solid rgba(255,255,255,.08);
  transition: color .15s, border-color .15s;
}
.docs-sec a:hover { color: var(--white) }
.docs-sec a.active { color: var(--gold); border-left-color: var(--gold) }
.docs-main { flex: 1; min-width: 0; max-width: 780px }

.docs-crumb { font-size: 1rem; color: var(--grey); margin-bottom: 1rem }
.docs-crumb a { color: var(--gold) }
.docs-crumb span { margin: 0 .4rem; opacity: .5 }
.docs-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: .95; letter-spacing: -.01em; color: var(--white); margin-bottom: .75rem;
}
.docs-desc { color: var(--grey-light); font-size: 1.25rem; line-height: 1.6; margin-bottom: 2rem }

.docs-prose h2 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--white);
  margin: 2.5rem 0 1rem; padding-top: .5rem;
}
.docs-prose h3 {
  font-family: 'Barlow', sans-serif; font-size: 1.25rem; font-weight: 700;
  color: var(--white); margin: 1.75rem 0 .75rem;
}
.docs-prose code {
  background: rgba(255,255,255,.08); border-radius: 4px; padding: .1em .35em;
  font-size: .92em; color: var(--gold-bright);
}
.docs-prose strong { color: var(--white) }
.docs-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 1.05rem }
.docs-prose th {
  text-align: left; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .06em;
  text-transform: uppercase; color: var(--grey); font-weight: 700;
  padding: .5rem .75rem; border-bottom: 1px solid rgba(255,255,255,.15);
}
.docs-prose td { padding: .5rem .75rem; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--grey-light) }
.docs-prose blockquote {
  border-left: 3px solid var(--gold); background: rgba(245,166,35,.06);
  padding: .75rem 1.25rem; margin: 1.25rem 0; border-radius: 0 8px 8px 0;
}
.docs-prose blockquote p { margin: 0 }

.doc-shot { margin: 1.75rem 0 }
.doc-shot img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.doc-shot figcaption { text-align: center; color: var(--grey); font-size: .95rem; margin-top: .6rem }

.docs-pn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08) }
.docs-pn a { color: var(--gold); font-size: 1.1rem }
.docs-pn a:hover { color: var(--gold-bright) }

.docs-sec-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin: 2.5rem 0 1rem;
}
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem }
.docs-card {
  display: block; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.25rem; transition: border-color .2s, transform .2s;
}
.docs-card:hover { border-color: var(--gold); transform: translateY(-2px) }
.docs-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .4rem }
.docs-card p { color: var(--grey); font-size: 1rem; line-height: 1.5 }

.docs-search { position: relative; margin-bottom: 1rem }
.docs-search input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: .8rem 1.1rem; color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 1.1rem; outline: none;
}
.docs-search input:focus { border-color: var(--gold) }
#docsResults { margin-top: .5rem }
#docsResults a {
  display: block; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; margin-bottom: .5rem; background: rgba(255,255,255,.03);
}
#docsResults a:hover { border-color: var(--gold) }
#docsResults .r-title { color: var(--white); font-size: 1.1rem }
#docsResults .r-sec { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em }
#docsResults .r-desc { color: var(--grey); font-size: .95rem }

@media (max-width: 1023px) {
  .docs-layout { flex-direction: column; gap: 1.5rem; padding-top: 90px }
  .docs-sidebar { width: 100%; }
  .docs-sidebar-inner { position: static; max-height: none }
  .docs-sec { display: none }
  .docs-sidebar .docs-home-link { margin-bottom: 0 }
}
