/* /docs/assets/docs.css */

/* Topbar */
.docs-topbar{
  position: sticky; top:0; z-index: 1000;
  background: rgba(11,13,16,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.docs-brand{
  font-weight: 900;
  letter-spacing:.2px;
  opacity:.95;
  white-space:nowrap;
}
.docs-search{ flex:1; position:relative; }
.docs-search input{ width:100%; }

/* Search dropdown */
.docs-search__results{
  position:absolute; left:0; right:0; top: calc(100% + 8px);
  background: rgba(17,21,26,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  overflow:hidden;
  display:none;
}
.docs-search__results a{
  display:block;
  padding:10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.docs-search__results a:hover{ background: rgba(255,255,255,.05); }
.docs-search__results a:last-child{ border-bottom:0; }

.docs-shell{
  width: 100%;
  padding: 18px 20px;
  display:grid;
  grid-template-columns: 320px minmax(0, 1fr) 280px;
  gap: 20px;
}

.docs-topbar__inner{
  width: 100%;
  padding: 12px 20px;
  display:flex;
  gap:14px;
  align-items:center;
}


.docs-nav, .docs-toc{
  position: sticky;
  top: 78px;
  align-self:start;
  max-height: calc(100vh - 100px);
  overflow:auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}

.docs-nav{ padding: 12px; }
.docs-content{ min-width:0; }

.docs-article{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding: 18px;
}
.docs-article h1{
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 8px;
}
.docs-article h2{ margin-top: 24px; }
.docs-article h3{ margin-top: 18px; }
.docs-article p{
  color: rgba(255,255,255,.86);
  line-height: 1.8;
}

.docs-article pre{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  border-radius: 14px;
  padding: 12px;
  overflow:auto;
}
.docs-article code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* Sidebar */
.docs-side__section{ margin-bottom: 14px; }
.docs-side__title{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin: 6px 0 10px;
}

.docs-productlist{ display:flex; flex-wrap:wrap; gap:8px; }
.docs-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  font-size: 12px;
}
.docs-pill:hover{ background: rgba(255,255,255,.06); }
.docs-pill.is-active{
  border-color: rgba(255,209,0,.35);
  background: rgba(255,209,0,.10);
}

/* Tree */
.docs-tree{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.docs-tree.depth-1{ padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); margin-left: 6px; }
.docs-tree.depth-2{ padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); margin-left: 6px; }
.docs-tree__link{
  display:block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.86);
}
.docs-tree__link:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.docs-tree__link.is-active{
  background: rgba(255, 209, 0, .10);
  border-color: rgba(255, 209, 0, .28);
}

/* TOC */
.docs-toc{ padding: 12px; }
.docs-toc__title{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin: 6px 0 10px;
}
#docsToc a{
  display:block;
  padding: 6px 8px;
  border-radius: 10px;
  opacity: .9;
}
#docsToc a:hover{ background: rgba(255,255,255,.05); opacity: 1; }
#docsToc a.toc-h3{ padding-left: 16px; opacity:.82; }

/* Responsive */
@media (max-width: 1100px){
  .docs-shell{ grid-template-columns: 280px minmax(0,1fr); }
  .docs-toc{ display:none; }
}
@media (max-width: 860px){
  .docs-shell{ grid-template-columns: 1fr; }
  .docs-nav{ position:relative; top:auto; max-height:none; }
}
/* ===== Sidebar chapters polish ===== */
.docs-tree__chapters{
  margin-top: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.06);
}

.docs-chapter{
  margin: 10px 0 12px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}

.docs-chapter__title{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin: 0 0 6px;
  display:flex;
  align-items:center;
  gap:8px;
}

.docs-chapter__title::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,209,0,.75);
  box-shadow: 0 0 0 3px rgba(255,209,0,.10);
}

.docs-chapter__text{
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: rgba(255,255,255,.55);
}

/* nested list inside chapter */
.docs-chapter .docs-tree.depth-1{
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-chapter .docs-tree__item{
  margin: 0;
}

.docs-chapter .docs-tree__link{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}

.docs-chapter .docs-tree__link:hover{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
}

/* active (wenn du is-active setzt) */
.docs-chapter .docs-tree__link.is-active{
  background: rgba(255,209,0,.08);
  border: 1px solid rgba(255,209,0,.18);
  color: rgba(255,255,255,.95);
}
