/* Docs layout using existing theme variables */
.docs {
  margin: 40px 6%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
@media (max-width: 1000px){
  .docs { grid-template-columns: 1fr; }
  .docs__sidebar { position: sticky; top: 84px; }
}
.docs__sidebar{
  background: var(--glassBackground);
  border: 1px solid var(--borderGlass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadowMd);
  padding: 16px;
  height: fit-content;
}
.docs__group{ margin-bottom: 14px; }
.docs__group__title{ font-weight: 700; font-size: 13px; color: var(--colorHeading); opacity:.9; margin-bottom:8px; text-transform: uppercase; letter-spacing:.06em; }
.docs__nav{ list-style: none; padding:0; }
.docs__nav a{ display:block; padding:8px 10px; color: var(--colorText); border-radius:10px; border:1px solid transparent; }
.docs__nav a:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.docs__nav a.active{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color:#fff; }
/* Force consistent colors for normal and visited links in sidebar */
.docs__nav a:link, .docs__nav a:visited{ color: var(--colorText); }

.docs__content{
  background: var(--glassBackground);
  border: 1px solid var(--borderGlass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadowMd);
  padding: 24px 28px;
}
.docs__title{ font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 28px; margin-bottom: 10px; color: var(--colorHeading); }
.docs__description{ color: var(--colorText); opacity:.9; margin-bottom: 24px; }

.docs__card{ border:1px solid var(--borderGlass); border-radius:12px; padding:16px; margin-bottom:12px; background: rgba(0,0,0,.18); }
.docs__card h3{ font-size:16px; margin-bottom:6px; color:#fff; }
.docs__list{ margin: 10px 0 0 18px; }
.docs__badge{ display:inline-block; padding:2px 8px; border-radius:8px; background: var(--colorMain); color:#fff; font-weight:700; font-size:11px; }

.docs__breadcrumb{ font-size:12px; opacity:.7; margin-bottom:10px; }

/* Inline search (top-right) */
.docs__searchbar{ display:flex; justify-content:flex-end; margin-bottom:12px; position:relative; }
.docs__searchbar input{ width: 320px; max-width: 100%; background: rgba(255,255,255,.06); border:1px solid var(--borderGlass); color:#fff; border-radius:10px; padding:8px 12px 8px 34px; outline:none; transition: var(--transitionFast); }
.docs__searchbar input::placeholder{ color: rgba(255,255,255,.55); }
.docs__searchbar input:focus{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 3px rgba(255,59,59,.15); }
.docs__searchbar .icon{ position:absolute; right: calc(320px - 30px); pointer-events:none; opacity:.7; transform: translateY(9px); }
.docs__results{ position:absolute; top:40px; right:0; width: 420px; max-width: min(92vw, 420px); background: var(--glassBackground); border:1px solid var(--borderGlass); border-radius:12px; padding:6px; box-shadow: var(--shadowLg); display:none; z-index: 50; }
.docs__results.open{ display:block; }
.docs__result{ display:flex; gap:10px; padding:8px 10px; border-radius:10px; color:#fff; border:1px solid transparent; }
.docs__result:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.docs__result .title{ font-weight:700; }
.docs__result .desc{ opacity:.75; font-size:12px; }

/* Force link colors inside content (avoid blue/purple) */
.docs__content a:link, .docs__content a:visited{ color: var(--colorMain); text-decoration: none; }
.docs__content a:hover{ text-decoration: underline; }
