/* ==========================================================================
   DataKnits Knowledge Hub Styles
   Extends: ../css/style.css
   ========================================================================== */

/* ── Breadcrumb / Page-path strip ── */
.docs-page-header {
  background: hsl(220, 24%, 7%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 0;
  position: relative;
  z-index: 2;
  margin-top: var(--header-height);
}
.docs-page-header .container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.docs-page-header a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}
.docs-page-header a:hover { color: var(--color-secondary); }
.docs-page-header .bc-sep {
  color: hsla(220,20%,100%,0.2);
  font-size: 0.85rem;
  user-select: none;
}
.docs-page-header .bc-current {
  color: var(--text-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.docs-page-header svg { flex-shrink: 0; }

/* ── Hero ── */
.docs-hero {
  padding: 6rem 0 3rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, hsla(250,84%,63%,0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}
.docs-hero-inner { max-width: 780px; margin: 0 auto; }
.docs-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.docs-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Search */
.docs-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  transition: var(--transition-fast);
}
.docs-search-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px hsla(250,84%,63%,0.15);
}
.docs-search-icon { color: var(--text-muted); flex-shrink: 0; }
.docs-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.docs-search-input::placeholder { color: var(--text-muted); }
.docs-search-kbd {
  background: hsla(220,20%,100%,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Quick Nav Pills ── */
.docs-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.docs-quicknav-pill {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.docs-quicknav-pill:hover,
.docs-quicknav-pill.active {
  background: hsla(250,84%,63%,0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Sections ── */
.docs-main-content { padding: 3rem 0 5rem; }

.docs-section { margin-bottom: 4rem; }

.docs-section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.docs-section-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.docs-section-title {
  font-size: 1.75rem;
  margin-bottom: 0.2rem;
}
.docs-section-subtitle { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

.docs-sub-heading {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Quick Start Steps ── */
.docs-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.docs-qs-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-fast);
}
.docs-qs-step:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px hsla(190,90%,50%,0.08);
  transform: translateY(-2px);
}
.docs-qs-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: hsla(250,84%,63%,0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.docs-qs-step h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.docs-qs-step p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.docs-inline-link {
  font-size: 0.8rem;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
}
.docs-inline-link:hover { text-decoration: underline; }

/* ── Concept Cards ── */
.docs-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.docs-concept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-fast);
}
.docs-concept-card:hover {
  border-color: hsla(250,84%,63%,0.3);
  box-shadow: var(--shadow-glow);
}
.docs-concept-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.docs-concept-icon.indigo  { background: hsla(250,84%,63%,0.15); color: var(--color-primary); }
.docs-concept-icon.cyan    { background: hsla(190,90%,50%,0.12); color: var(--color-secondary); }
.docs-concept-icon.violet  { background: hsla(280,85%,60%,0.12); color: var(--color-accent); }
.docs-concept-icon.green   { background: hsla(160,84%,39%,0.12); color: #34D399; }
.docs-concept-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.docs-concept-card p  { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.6rem; }

/* ── Section Navigation Cards ── */
.docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.docs-nav-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}
.docs-nav-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.docs-nav-card-featured { border-color: hsla(14,165%,50%,0.25); }
.docs-nav-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.docs-nav-card-body { flex: 1; }
.docs-nav-card-body h4 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--text-primary); }
.docs-nav-card-body > p { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.docs-nav-card-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.docs-nav-card-links li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.docs-nav-card-links li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--color-primary);
}
.docs-nav-card-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}
.docs-nav-card:hover .docs-nav-card-arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ── Resource Hierarchy ── */
.docs-hierarchy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.docs-hierarchy-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--level-color, var(--color-primary));
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
}
.docs-hierarchy-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--level-color, var(--color-primary));
  color: white;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  flex-shrink: 0;
}
.docs-hierarchy-body { display: flex; flex-direction: column; gap: 0.15rem; }
.docs-hierarchy-body strong { font-size: 0.9rem; color: var(--text-primary); }
.docs-hierarchy-body span  { font-size: 0.78rem; color: var(--text-secondary); }
.docs-hierarchy-connector {
  width: 2px;
  height: 18px;
  background: var(--border-subtle);
  margin-left: 2.5rem;
}

/* ── Help Strip ── */
.docs-help-strip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.docs-help-text h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.docs-help-text p  { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.docs-help-ctas    { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Sidebar Layout (for sub-pages AND index) ── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}

/* Index page: remove hero bottom border when sidebar layout is active */
.docs-hero-compact {
  padding: 2.25rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, hsla(250,84%,63%,0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2.5rem);
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  scrollbar-width: thin;
}
.docs-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(215, 20%, 70%);
  margin-bottom: 1rem;
}
.docs-sidebar-nav { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.docs-sidebar-nav li { margin-bottom: 0.15rem; }
.docs-sidebar-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(215, 20%, 82%);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-weight: 400;
}
.docs-sidebar-nav a:hover {
  background: hsla(250,84%,63%,0.12);
  color: hsl(250, 100%, 80%);
}
.docs-sidebar-nav a.active {
  background: hsla(250,84%,63%,0.18);
  color: hsl(250, 100%, 85%);
  font-weight: 600;
  border-left: 2px solid var(--color-primary);
  padding-left: calc(0.75rem - 2px);
}
.docs-sidebar-nav .sub a {
  padding-left: 1.5rem;
  font-size: 0.82rem;
  color: hsl(215, 15%, 72%);
}
/* Group labels inside sidebar */
.docs-sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(190, 70%, 65%);
  padding: 1rem 0.75rem 0.35rem;
  display: block;
  list-style: none;
}
.docs-sidebar-divider {
  height: 1px;
  background: hsla(220,20%,100%,0.1);
  margin: 0.5rem 0;
}

/* ── Article Content (sub-pages) ── */
.docs-article h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: hsl(210, 40%, 98%);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.docs-article .docs-lead {
  font-size: 1.05rem;
  color: hsl(215, 18%, 78%);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid hsla(220,20%,100%,0.1);
  line-height: 1.7;
}
.docs-article h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  color: hsl(210, 38%, 96%);
  font-weight: 700;
}
.docs-article h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
  color: hsl(210, 35%, 92%);
  font-weight: 600;
}
.docs-article h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(190, 70%, 65%);
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}
.docs-article p {
  font-size: 0.94rem;
  color: hsl(215, 18%, 80%);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.docs-article ul, .docs-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: hsl(215, 18%, 80%);
  font-size: 0.94rem;
  line-height: 1.8;
}
.docs-article li { margin-bottom: 0.35rem; }
.docs-article code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: hsla(190,90%,50%,0.1);
  border: 1px solid hsla(190,90%,50%,0.2);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  color: hsl(190, 90%, 70%);
}
.docs-article pre {
  background: hsl(220,28%,9%);
  border: 1px solid hsla(220,20%,100%,0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.docs-article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.83rem;
  color: hsl(210, 40%, 94%);
}

/* ── Technology Detail Page Header ── */
.docs-tech-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid hsla(220,20%,100%,0.1);
}
.docs-tech-header-icon {
  width: 100%;
  padding: 1.1rem 1.75rem;
  color: white;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  min-height: 56px;
}
.docs-tech-header > div:last-child {
  padding: 1.25rem 1.75rem 1.75rem;
  background: hsla(220,20%,10%,0.85);
}
.docs-tech-header .docs-lead {
  font-size: 1rem;
  color: hsl(215, 18%, 80%);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  border: none;
}

/* Info / Warning / Note callouts */
.docs-callout {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.87rem;
  line-height: 1.65;
}
.docs-callout.info    { background: hsla(190,90%,50%,0.08); border-left: 3px solid var(--color-secondary); color: var(--text-secondary); }
.docs-callout.warning { background: hsla(38,92%,50%,0.08);  border-left: 3px solid #F59E0B; color: var(--text-secondary); }
.docs-callout.danger  { background: hsla(0,84%,60%,0.08);   border-left: 3px solid #EF4444; color: var(--text-secondary); }
.docs-callout.success { background: hsla(160,84%,39%,0.08); border-left: 3px solid #10B981; color: var(--text-secondary); }
.docs-callout-icon    { flex-shrink: 0; margin-top: 1px; }

/* Tables */
.docs-table-wrap { overflow-x: auto; overflow-y: hidden; margin-bottom: 1.5rem; border-radius: var(--radius-md); border: 1px solid hsla(220,20%,100%,0.1); }
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.docs-table th {
  background: hsla(220,24%,14%,0.9);
  color: hsl(190, 70%, 70%);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsla(220,20%,100%,0.1);
  font-weight: 700;
}
.docs-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid hsla(220,20%,100%,0.06);
  color: hsl(215, 18%, 82%);
  vertical-align: top;
  line-height: 1.6;
}
.docs-table td:first-child { color: hsl(210, 35%, 92%); font-weight: 500; }
.docs-table td a { color: hsl(190, 80%, 65%); text-decoration: underline; font-weight: 600; }
.docs-table td a:hover { color: hsl(190, 90%, 75%); }
.docs-table tr:last-child td { border-bottom: none; }
.docs-table tr:hover td { background: hsla(250,84%,63%,0.04); }
.docs-table strong { color: hsl(210, 40%, 96%); }
.badge-required { color: #F87171; font-size: 0.75rem; font-weight: 700; }
.badge-optional { color: hsl(215,15%,60%); font-size: 0.75rem; }
.badge-conditional { color: #FBBF24; font-size: 0.75rem; font-weight: 600; }
.badge-yes   { color: #34D399; font-weight: 700; font-size: 0.82rem; }
.badge-no    { color: #F87171; font-size: 0.82rem; }
.badge-partial { color: #FBBF24; font-size: 0.82rem; }

/* Breadcrumb */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: hsl(215, 15%, 65%);
  margin-bottom: 1.5rem;
}
.docs-breadcrumb a { color: hsl(190, 80%, 65%); text-decoration: none; font-weight: 500; }
.docs-breadcrumb a:hover { color: hsl(190, 90%, 75%); text-decoration: underline; }
.docs-breadcrumb span { color: hsl(215, 12%, 55%); }

/* On-this-page anchor list */
.docs-on-page {
  background: hsla(220,24%,11%,0.7);
  border: 1px solid hsla(220,20%,100%,0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.docs-on-page-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(190, 70%, 65%);
  margin-bottom: 0.75rem;
}
.docs-on-page ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.docs-on-page ul a {
  font-size: 0.85rem;
  color: hsl(215, 18%, 78%);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  transition: var(--transition-fast);
}
.docs-on-page ul a:hover { color: hsl(250, 100%, 80%); border-color: var(--color-primary); }

/* Tech tag chips */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid;
}
.tech-chip.database  { background: hsla(250,84%,63%,0.1); color: #A5B4FC; border-color: hsla(250,84%,63%,0.25); }
.tech-chip.warehouse { background: hsla(190,90%,50%,0.08); color: #67E8F9; border-color: hsla(190,90%,50%,0.2); }
.tech-chip.storage   { background: hsla(160,84%,39%,0.08); color: #6EE7B7; border-color: hsla(160,84%,39%,0.2); }
.tech-chip.streaming { background: hsla(38,92%,50%,0.08); color: #FCD34D; border-color: hsla(38,92%,50%,0.2); }
.tech-chip.nosql     { background: hsla(280,85%,60%,0.1); color: #D8B4FE; border-color: hsla(280,85%,60%,0.2); }
.tech-chip.file      { background: hsla(220,20%,100%,0.06); color: var(--text-secondary); border-color: var(--border-subtle); }
.tech-chip.timeseries{ background: hsla(0,84%,60%,0.08); color: #FCA5A5; border-color: hsla(0,84%,60%,0.2); }

/* ── Technologies Grid ── */
.docs-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.docs-tech-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.docs-tech-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.docs-tech-card-icon {
  width: 100%;
  padding: 0.75rem 1.25rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.docs-tech-card-body {
  padding: 1.25rem;
  flex: 1;
}
.docs-tech-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: hsl(215, 18%, 80%);
  line-height: 1.65;
}
.docs-tech-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}
.docs-tech-card:hover .docs-tech-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Theme-aware Knowledge Hub color layer */
.docs-page-header {
  background: var(--header-bg-scrolled);
}
.docs-page-header .bc-sep,
.docs-page-header .bc-current,
.docs-breadcrumb,
.docs-breadcrumb span {
  color: var(--text-muted);
}
.docs-search-kbd {
  background: var(--bg-surface-elevated);
}
.docs-sidebar-title,
.docs-sidebar-nav a,
.docs-sidebar-nav .sub a,
.docs-article p,
.docs-article ul,
.docs-article ol,
.docs-table td,
.docs-on-page ul a,
.docs-tech-card-body p,
.docs-tech-header .docs-lead {
  color: var(--text-secondary);
}
.docs-sidebar-group-label,
.docs-article h4,
.docs-on-page-title,
.docs-breadcrumb a,
.docs-table th {
  color: var(--color-secondary);
}
.docs-sidebar-nav a:hover,
.docs-sidebar-nav a.active,
.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-table td:first-child,
.docs-table strong,
.docs-article pre code {
  color: var(--text-primary);
}
.docs-sidebar-divider,
.docs-article .docs-lead,
.docs-tech-header,
.docs-table-wrap,
.docs-table th,
.docs-table td,
.docs-on-page {
  border-color: var(--border-subtle);
}
.docs-sidebar-divider {
  background: var(--border-subtle);
}
.docs-article .docs-lead {
  color: var(--text-secondary);
}
.docs-article code {
  background: color-mix(in srgb, var(--color-secondary) 10%, transparent);
  border-color: color-mix(in srgb, var(--color-secondary) 22%, transparent);
  color: var(--color-secondary);
}
.docs-article pre,
.docs-tech-header > div:last-child,
.docs-table th {
  background: var(--bg-surface-elevated);
}
.docs-on-page {
  background: var(--bg-surface);
}
.docs-on-page ul a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

html[data-theme="light"] .docs-sidebar-nav a:hover,
html[data-theme="light"] .docs-sidebar-nav a.active {
  background: color-mix(in srgb, var(--color-primary) 13%, white);
  color: var(--color-primary);
}
html[data-theme="light"] .docs-sidebar-nav .sub a {
  color: hsl(216, 20%, 46%);
}
html[data-theme="light"] .docs-page-header {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .docs-on-page {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .docs-table th {
  background: hsl(214, 42%, 96%);
}
html[data-theme="light"] .docs-table tr:hover td {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
}
html[data-theme="light"] .tech-chip.database  { color: hsl(242, 72%, 46%); }
html[data-theme="light"] .tech-chip.warehouse { color: hsl(190, 82%, 34%); }
html[data-theme="light"] .tech-chip.storage   { color: hsl(160, 70%, 30%); }
html[data-theme="light"] .tech-chip.streaming { color: hsl(35, 86%, 34%); }
html[data-theme="light"] .tech-chip.nosql     { color: hsl(280, 68%, 40%); }
html[data-theme="light"] .tech-chip.timeseries{ color: hsl(0, 72%, 44%); }
