/* ProxyGrove Documentation & Help Center — white + blue corporate system */

.docs-page {
  background: #ffffff;
  color: #111827;
}

.docs-breadcrumb {
  padding: 1.25rem 0 0;
}

.docs-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.docs-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #94a3b8;
}

.docs-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.docs-hero {
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 75%);
}

.docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.25rem;
  align-items: center;
}

.docs-hero-copy h1 {
  margin: 0.65rem 0 0.9rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}

.docs-hero-copy .lede {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 38rem;
}

.docs-search {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0 0 0.75rem;
}

.docs-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.docs-search input[type="search"]:focus {
  outline: 2px solid #93c5fd;
  border-color: #2563eb;
}

.docs-search-submit {
  border: 0;
  border-radius: 12px;
  padding: 0 1.15rem;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.docs-search-meta {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.docs-hero-visual {
  position: relative;
  justify-self: center;
}

.docs-hero-glow {
  position: absolute;
  inset: 12% 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
  filter: blur(18px);
  z-index: 0;
}

.docs-hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  height: auto;
}

.docs-section-head {
  margin: 0 0 1.35rem;
  max-width: 42rem;
}

.docs-section-head h2 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  color: #111827;
}

.docs-section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.docs-categories,
.docs-featured,
.docs-related-hubs,
.docs-results {
  padding: 1.5rem 0 2.75rem;
}

.docs-cat-grid,
.docs-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.docs-cat-card,
.docs-feat-card,
.docs-result-card,
.docs-article-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-cat-card:hover,
.docs-feat-card:hover,
.docs-result-card:hover,
.docs-article-row:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.docs-cat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  margin-bottom: 0.25rem;
}

.docs-cat-name,
.docs-feat-title,
.docs-result-title,
.docs-article-row-title {
  font-weight: 650;
  color: #111827;
  font-size: 1.05rem;
}

.docs-cat-desc,
.docs-feat-excerpt,
.docs-result-excerpt,
.docs-article-row-excerpt {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.docs-cat-count,
.docs-feat-cat,
.docs-result-cat,
.docs-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-result-list,
.docs-article-list,
.docs-hub-list,
.docs-related ul,
.docs-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-result-list,
.docs-article-list {
  display: grid;
  gap: 0.85rem;
}

.docs-empty {
  padding: 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
}

.docs-empty h3 {
  margin: 0 0 0.5rem;
}

.docs-hub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.docs-hub-list a {
  display: inline-flex;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  color: #1e3a8a;
  text-decoration: none;
  background: #f8fbff;
  font-weight: 550;
}

.docs-category-hero {
  padding: 1.75rem 0 1rem;
}

.docs-category-hero h1 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.docs-category-layout,
.docs-article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.docs-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docs-side-link {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
}

.docs-side-link:hover,
.docs-side-link.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.docs-toc-rail {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.docs-toc-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.docs-toc {
  margin-bottom: 1.5rem;
}

.docs-toc a {
  display: block;
  padding: 0.3rem 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
}

.docs-toc-l3 a {
  padding-left: 0.85rem;
  font-size: 0.84rem;
}

.docs-article-header {
  margin-bottom: 1.5rem;
}

.docs-article-header h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.docs-meta {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.docs-fallback-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  color: #334155;
  font-size: 0.92rem;
}

.docs-article-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
}

.docs-article-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
  color: #111827;
}

.docs-article-body h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.15rem;
  color: #111827;
}

.docs-article-body p,
.docs-article-body ul,
.docs-article-body ol {
  margin: 0 0 1rem;
}

.docs-article-body li {
  margin: 0.3rem 0;
}

.docs-article-body a {
  color: #2563eb;
}

.docs-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.docs-article-body pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0 0 1.15rem;
}

.docs-article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.docs-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}

.docs-prev-next a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #111827;
  background: #f8fbff;
}

.docs-prev-next a span {
  color: #64748b;
  font-size: 0.82rem;
}

.docs-next {
  text-align: right;
}

.docs-related {
  margin: 1.5rem 0 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.docs-related h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.docs-related li {
  margin: 0.4rem 0;
}

.docs-related a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 550;
}

.docs-help-band {
  margin: 2rem 0 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #f8fbff);
  border: 1px solid #dbeafe;
}

.docs-help-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.docs-help-band p {
  margin: 0 0 1rem;
  color: #475569;
}

@media (max-width: 960px) {
  .docs-hero-grid,
  .docs-category-layout,
  .docs-article-layout,
  .docs-cat-grid,
  .docs-feat-grid {
    grid-template-columns: 1fr;
  }

  .docs-hero-visual {
    order: -1;
  }

  .docs-toc-rail {
    position: static;
  }

  .docs-prev-next {
    grid-template-columns: 1fr;
  }

  .docs-next {
    text-align: left;
  }
}
