/* Knowledge base article navigation.
 *
 * A KB article renders on the SITE template, not the portal one: body
 * background #0a0e1a, body text #94a3b8, cyan accent. portal.css is a
 * light-theme sheet and is deliberately NOT loaded here — pulling it onto
 * a dark page to get one nav block styled would restyle the article
 * around it. Hence this small sheet, enqueued only on bds_kb singles.
 */

.bds-kb-nav {
  margin: 3rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 212, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bds-kb-nav a { text-decoration: none; }

.bds-kb-nav-back {
  color: #00d4ff;
  font-weight: 600;
  font-size: 0.95rem;
}
.bds-kb-nav-back:hover { text-decoration: underline; }

/* Two columns where there is room, stacked on a phone. Previous sits
   left and next right when both exist; a lone "next" still sits right,
   which is why this is a grid with named placement rather than a flex
   row that would pull a single child to the wrong side. */
.bds-kb-nav-siblings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bds-kb-nav-prev { grid-column: 1; }
.bds-kb-nav-next { grid-column: 2; text-align: right; }

.bds-kb-nav-siblings > a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 8px;
  color: #cbd5e1;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.bds-kb-nav-siblings > a:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.06);
}

.bds-kb-nav-dir {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.bds-kb-nav-title {
  display: block;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.35;
}

.bds-kb-nav-ask {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.bds-kb-nav-ask a { color: #00d4ff; }
.bds-kb-nav-ask a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .bds-kb-nav-siblings { grid-template-columns: 1fr; }
  .bds-kb-nav-prev, .bds-kb-nav-next { grid-column: 1; text-align: left; }
}
