/* Browns Digital — documentation pages (avicenna-style sidebar layout) */

.docs-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(168, 196, 255, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(91, 140, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 75%, rgba(53, 92, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 45%, #fafbff 100%);
  background-attachment: fixed;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}

.docs-body .nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.docs-body .nav-container {
  pointer-events: auto;
  width: 100%;
  max-width: 980px;
  min-height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-radius: 0;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease;
}

.docs-body .nav-fixed.nav-is-compact {
  top: 14px;
  padding: 0 14px;
}

.docs-body .nav-fixed.nav-is-compact .nav-container {
  width: auto;
  max-width: min(calc(100% - 28px), 640px);
  min-height: 44px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.docs-body .nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.docs-body .nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.docs-body .nav-btn {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}

.docs-body .nav-btn:hover {
  color: #1d1d1f;
}

/* ── Sidebar + article shell ── */
.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px 64px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  padding: 20px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 48px rgba(53, 92, 255, 0.06);
}

.docs-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
  margin: 0 0 12px 8px;
}

.docs-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #424245;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.docs-sidebar__link:hover {
  background: rgba(53, 92, 255, 0.06);
  color: #1d1d1f;
}

.docs-sidebar__link.is-active {
  background: rgba(53, 92, 255, 0.1);
  color: #355cff;
}

.docs-sidebar__num {
  flex-shrink: 0;
  width: 28px;
  font-size: 12px;
  font-weight: 700;
  color: #86868b;
  font-variant-numeric: tabular-nums;
}

.docs-sidebar__link.is-active .docs-sidebar__num {
  color: #355cff;
}

.docs-sidebar__text {
  line-height: 1.3;
}

.docs-sidebar__cta {
  display: block;
  margin-top: 16px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #355cff;
  text-decoration: none;
  border-top: 1px solid rgba(53, 92, 255, 0.1);
}

.docs-sidebar__cta:hover {
  text-decoration: underline;
}

.docs-main {
  max-width: 680px;
  min-width: 0;
}

.docs-hero {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8faff;
  aspect-ratio: 3 / 1;
}

.docs-hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center center;
  border: none;
  box-shadow: none;
}

.docs-article h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #1d1d1f;
}

.docs-article .docs-lead {
  font-size: 19px;
  line-height: 1.5;
  color: #6e6e73;
  margin: 0 0 36px;
}

.docs-article h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 8px;
  color: #1d1d1f;
  border-top: 1px solid rgba(53, 92, 255, 0.08);
}

.docs-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.docs-article p,
.docs-article li {
  font-size: 17px;
  line-height: 1.55;
  color: #424245;
}

.docs-article ul,
.docs-article ol {
  padding-left: 1.25em;
  margin: 0 0 20px;
}

.docs-article a {
  color: #355cff;
  text-decoration: none;
}

.docs-article a:hover {
  text-decoration: underline;
}

.docs-article code {
  font-size: 0.92em;
  background: rgba(53, 92, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.docs-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  color: #86868b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-foot a {
  color: #355cff;
  text-decoration: none;
}

.docs-foot a:hover {
  text-decoration: underline;
}

/* ── Docs hub (docs.brownsdigital.org root) ── */
.docs-hub {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

.docs-hub__head {
  text-align: center;
  margin-bottom: 48px;
}

.docs-hub__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b8cff;
  margin: 0 0 8px;
}

.docs-hub__title {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.docs-hub__lead {
  font-size: 18px;
  line-height: 1.5;
  color: #6e6e73;
  margin: 0 auto;
  max-width: 28em;
}

.docs-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.docs-hub__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 92, 255, 0.08);
  box-shadow: 0 12px 40px rgba(53, 92, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-hub__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(53, 92, 255, 0.1);
}

.docs-hub__num {
  font-size: 12px;
  font-weight: 700;
  color: #86868b;
  letter-spacing: 0.04em;
}

.docs-hub__card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.docs-hub__card-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #6e6e73;
}

@media (max-width: 820px) {
  .docs-shell {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .docs-body .nav-brand__text {
    display: none;
  }
}
