/* BioNexus Hub base styles, shared by every page.
   Loaded BEFORE each page's own <style>, so page-specific rules still win.
   Brand colour overrides and small fixes live in site.css (loaded last). */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-blue: #5b9cf8;
  --primary-purple: #a855f7;
  --light-blue: #7db4ff;
  --deep-navy: #0f172a;
  --soft-white: #f8fafc;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --green: #10b981;
  --amber: #f59e0b;
}
body {
  font-family: 'Work Sans',sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--soft-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248,250,252,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,156,248,0.2);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 50px;
  width: auto;
}
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,var(--primary-blue),var(--primary-purple));
  transition: width 0.3s;
}
nav a:hover {
  color: var(--primary-blue);
}
nav a:hover::after {
  width: 100%;
}
.cta-nav::after {
  display: none;
}
.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91,156,248,0.4);
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag.green {
  background: rgba(16,185,129,0.12);
  border-color: transparent;
  color: #047857;
}
.lesson-body {
  max-width: 820px;
  margin: 0 auto;
}
.lesson-body li {
  margin-bottom: 8px;
  font-size: 1.08rem;
}
.lesson-body strong {
  color: var(--deep-navy);
}
.jargon {
  background: linear-gradient(135deg,rgba(168,85,247,0.06),rgba(91,156,248,0.06));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
}
.jargon h4 {
  color: var(--primary-purple);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.jargon h4 span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-right: 8px;
}
pre .c {
  color: #64748b;
}
pre .s {
  color: #86efac;
}
code.inline {
  background: rgba(91,156,248,0.12);
  color: #4c5fd5;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono',monospace;
  font-size: 0.86em;
}
details {
  background: white;
  border: 1px solid rgba(91,156,248,0.2);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 12px;
}
details summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--deep-navy);
}
.next-lesson {
  display: block;
  background: white;
  border: 2px solid rgba(91,156,248,0.25);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 40px;
  text-decoration: none;
  transition: all 0.3s;
}
.next-lesson:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(91,156,248,0.15);
}
.next-lesson span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-gray);
}
footer {
  background: var(--deep-navy);
  color: white;
  padding: 40px 0 30px;
  text-align: center;
}
footer p {
  color: rgba(255,255,255,0.6);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}
.refs {
  background: #f1f5f9;
  border: 1px solid rgba(91,156,248,0.2);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 30px 0;
}
.refs h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-gray);
  margin-bottom: 12px;
}
.refs a {
  color: var(--primary-blue);
  text-decoration: none;
}
.refs .reviewed {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-top: 12px;
  font-style: italic;
}
