/* ==========================================================================
   Quanifi Documentation Stylesheet
   Modern, responsive quantum software engineering portal
   Colors: Primary Cyan #01a1c0, Signature Amber #fa9e2c, Typography: Roboto
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #01a1c0;
  --primary-dark: #007a93;
  --primary-light: #e6f6f9;
  --primary-subtle: #f0f9fb;
  --accent: #fa9e2c;
  --accent-dark: #df8212;
  --accent-light: #fff6eb;
  --dark-header: #1c242c;
  --text-main: #2b353e;
  --text-muted: #5e6d77;
  --text-light: #8998a4;
  --bg-page: #f4f6f8;
  --bg-surface: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  --border: #e2e8f0;
  --surface: #ffffff;
  --text: #2b353e;
  --secondary: #5e6d77;
  --code-bg: #1e293b;
  --code-text: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --accent-purple: #8b5cf6;
  --accent-purple-bg: #f5f3ff;
  --accent-green: #10b981;
  --accent-green-bg: #ecfdf5;
  --accent-amber: #f59e0b;
  --accent-amber-bg: #fffbeb;
  --accent-rose: #f43f5e;
  --accent-rose-bg: #fff1f2;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Roboto', sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Action Bar
   ========================================================================== */

/* Main Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.branding-group {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Action Buttons */
.btn-action, .btn-each {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
  border: none;
}

.btn-action:active, .btn-each:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-warning {
  background-color: var(--accent);
  color: #2b1a05;
}

.btn-warning:hover {
  background-color: var(--accent-dark);
  color: #2b1a05;
}

.btn-github {
  background-color: #24292f;
  color: #ffffff;
  border: 1px solid #24292f;
}

.btn-github:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn-license {
  background-color: #f8fafc;
  color: #334155;
  border: 1px solid var(--border-medium);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-license:hover {
  background-color: #e2e8f0;
  color: var(--primary-dark);
  border-color: var(--border-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: #f1f5f9;
  border-color: var(--border-dark);
}

/* ==========================================================================
   Navigation Bar (Signature Blue & Orange Accent Line)
   ========================================================================== */

#site-navigation {
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  min-height: 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-extra {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-extra-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.15s ease;
}

.nav-extra-link:hover {
  background: rgba(0, 0, 0, 0.32);
  color: var(--accent);
  border-color: var(--accent);
}


.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background-color 0.15s;
}

.main-menu > li > a:hover,
.main-menu > li.active > a {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.main-menu > li.active > a {
  border-bottom: 3px solid var(--accent);
  margin-bottom: -3px;
}

/* Dropdown Menus */
.main-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: 3px solid var(--accent);
  z-index: 1000;
}

.main-menu > li:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 22px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
}

/* ==========================================================================
   Main Content Layout: Sidebar & Content Area
   ========================================================================== */

.content-wrapper {
  max-width: 1280px;
  margin: 24px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.content-wrapper.no-sidebar {
  grid-template-columns: 1fr;
}

/* ==========================================================================
   Sidebar & Widget Styling
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 68px;
}

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

/* Widget Title with Orange Accent Underline */
.widget-title {
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e3e3e3;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--accent);
}

.widget-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-menu li {
  margin-bottom: 4px;
}

.widget-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.widget-menu li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding-left: 14px;
}

.widget-menu li.active a {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.widget-menu .badge-count {
  background: #e2e8f0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Search Box in Sidebar */
.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 161, 192, 0.15);
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Document Article Content
   ========================================================================== */

.main-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--primary-dark);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--text-light);
}

/* Document Typography */
.main-content h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1a2228;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.main-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 38px 0 16px 0;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.35;
}

.main-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2b353e;
  margin: 28px 0 12px 0;
}

.main-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  margin: 20px 0 8px 0;
}

.main-content p {
  margin: 0 0 16px 0;
  color: #334155;
}

/* :where() keeps this at element specificity so .btn-*, .citation-badge etc. win */
:where(.main-content) a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:where(.main-content) a:hover {
  color: #005b6e;
}

.main-content ul, .main-content ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
  color: #334155;
}

.main-content li {
  margin-bottom: 6px;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 24px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-light);
  margin: 32px 0;
}

/* ==========================================================================
   Responsive Tables
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: #ffffff;
}

th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 16px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid #e9edf1;
  color: #334155;
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

tr:hover {
  background-color: var(--primary-subtle);
}

table code {
  background: #eef2f6;
  color: var(--primary-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   Code Blocks & Syntax Highlighting
   ========================================================================== */

pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.55;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 20px 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

:not(pre) > code {
  background-color: #f1f5f9;
  color: #0284c7;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Callout Boxes (Analogy, Tip, Note, Warning)
   ========================================================================== */

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  background-color: var(--primary-subtle);
}

.callout-title {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}

.callout.callout-warning {
  border-left-color: var(--accent);
  background-color: var(--accent-light);
}

.callout.callout-warning .callout-title {
  color: var(--accent-dark);
}

.callout.software-analogy {
  border-left-color: var(--accent);
  background-color: #fff9f2;
}

.callout.software-analogy .callout-title {
  color: #b45309;
}

/* ==========================================================================
   Getting Started & Onboarding Steps
   ========================================================================== */

.getting-started-section {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 30px;
  margin: 32px 0 40px;
  box-shadow: var(--shadow-sm);
}

.getting-started-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.getting-started-title-group h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a2228;
  margin: 0 0 6px 0;
  border-left: none;
  padding-left: 0;
}

.getting-started-title-group p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  position: relative;
}

.step-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.step-badge.accent {
  background: var(--accent);
  color: #2b1a05;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.step-code {
  background: var(--code-bg);
  color: var(--code-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow-x: auto;
  line-height: 1.45;
}

.step-card .card-link {
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
}

/* ==========================================================================
   Citation Section
   ========================================================================== */

.citation-section {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 26px 30px;
  margin: 36px 0 24px;
  box-shadow: var(--shadow-sm);
}

.citation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.citation-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  border-left: none;
  padding-left: 0;
}

.citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #b31b1b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.citation-badge:hover {
  opacity: 0.9;
  color: #ffffff;
}

.citation-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.citation-text p {
  margin: 0;
}

.citation-bibtex-block {
  margin: 0;
}

.citation-bibtex-block pre {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  position: relative;
  overflow-x: auto;
}

/* ==========================================================================
   Cards Grid (Dashboard / Hub / Screenshots)
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  align-self: flex-start;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  flex: 1;
}

.card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}

.card-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* Screenshots Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

.gallery-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-main);
}

.gallery-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 20, 0.92);
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--primary-dark);
  border-top: 4px solid var(--accent);
  color: #ffffff;
  padding: 50px 0 0;
  margin-top: 60px;
}

.footer-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  color: #e0f4f7;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #e0f4f7;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s, padding-left 0.15s;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  background-color: #007c94;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 20px;
  text-align: center;
  font-size: 12.5px;
  color: #d1eff4;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .main-menu.active {
    display: flex;
  }

  .main-menu > li > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.1);
    border-top: none;
    padding: 0;
  }

  .dropdown-menu li a {
    color: #ffffff;
    padding-left: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .main-content {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Interactive Tutorials & Canvas Documentation Styles
   Fixes broken bullet points, steps layout, callouts, and canvas diagrams
   ========================================================================== */

/* Tutorial Callout Variations */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  color: #075985;
}

.callout p {
  margin: 0 0 8px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout.software-analogy {
  background: var(--accent-purple-bg);
  border-left-color: var(--accent-purple);
  color: #4c1d95;
}
.callout.software-analogy .callout-title {
  color: #5b21b6;
}

.callout.tip {
  background: var(--accent-green-bg);
  border-left-color: var(--accent-green);
  color: #064e3b;
}
.callout.tip .callout-title {
  color: #047857;
}

.callout.note {
  background: var(--primary-light);
  border-left-color: var(--primary);
  color: #075985;
}
.callout.note .callout-title {
  color: #007a93;
}

.callout.warning {
  background: var(--accent-amber-bg);
  border-left-color: var(--accent-amber);
  color: #78350f;
}
.callout.warning .callout-title {
  color: #b45309;
}

/* Docker Quickstart / Prerequisites Banner */
.docker-prereq-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  color: #14532d;
}

.docker-prereq-banner .banner-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #15803d;
}

.docker-prereq-banner code {
  background: #dcfce7;
  color: #14532d;
  font-weight: 600;
}

.docker-prereq-banner pre {
  margin: 10px 0;
  background: #0f172a;
  color: #f8fafc;
}

/* Step Lists & Tutorial Components: Explicit override to eliminate stray bullets */
.main-content .step-list,
.step-list,
ol.step-list,
ul.step-list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 24px 0 !important;
}

.main-content .step-item,
.step-item,
ol.step-list > li,
ul.step-list > li {
  display: flex !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
  list-style: none !important;
  list-style-type: none !important;
  align-items: flex-start !important;
}

.main-content .step-item::marker,
.step-item::marker,
ol.step-list > li::marker,
ul.step-list > li::marker {
  display: none !important;
  content: "" !important;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(1, 161, 192, 0.35);
  margin-top: 2px;
}

.step-body {
  flex: 1;
}

.step-title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--dark-header);
}

.step-body p {
  margin-bottom: 12px;
}
.step-body p:last-child {
  margin-bottom: 0;
}

/* Ensure nested lists inside step-body have normal bullets */
.step-body ul {
  list-style-type: disc !important;
  padding-left: 20px !important;
  margin: 10px 0 !important;
}
.step-body ol {
  list-style-type: decimal !important;
  padding-left: 20px !important;
  margin: 10px 0 !important;
}
.step-body li {
  display: list-item !important;
  margin-bottom: 6px !important;
}

/* Tutorial Data Tables */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

table.data-table th, table.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14.5px;
}

table.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--dark-header);
}

table.data-table tr:last-child td {
  border-bottom: none;
}

/* Diagrams, Canvas Viewers & Zoom Lightbox */
.diagram-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 28px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.diagram-container svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.diagram-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.diagram-container img:hover {
  box-shadow: var(--shadow-md);
}

/* Scrollable container for ultra-wide canvas pipelines (like 1999px pipelines) */
.canvas-scroll-container {
  overflow-x: auto;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 14px 0;
  text-align: left;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.canvas-scroll-container img {
  min-width: 950px;
  max-width: 100%;
  height: auto;
  display: block;
}

.diagram-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.diagram-caption .zoom-hint {
  font-style: normal;
  font-size: 0.8rem;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Interactive Exercise Boxes */
.exercise-box {
  background: var(--bg-surface);
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.exercise-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.exercise-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--dark-header);
}

details.solution-accordion {
  margin-top: 20px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
}

details.solution-accordion summary {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  user-select: none;
  background: #f1f5f9;
  outline: none;
  transition: background 0.15s ease;
}

details.solution-accordion summary:hover {
  background: #e2e8f0;
  color: var(--primary);
}

details.solution-accordion .solution-content {
  padding: 20px;
  border-top: 1px solid var(--border-medium);
  background: var(--bg-surface);
}

details.solution-accordion .solution-content h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--dark-header);
}

/* Guide Pagination Navigation */
.guide-nav-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.guide-nav-button {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.guide-nav-button:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.guide-nav-button .nav-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.guide-nav-button .nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   Team & Authors Page Styles
   ========================================================================== */

.content-wrapper.team-page-wrapper {
  max-width: 1420px;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 32px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 1 calc(33.333% - 14px);
  min-width: 270px;
  max-width: 360px;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.team-avatar-wrapper {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  margin-bottom: 14px;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-light), #ffffff);
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.team-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--dark-header);
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin: 0 0 8px 0;
}

.team-affiliation {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.team-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: auto;
}

.team-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.team-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.team-link-btn.btn-linkedin {
  background-color: #0077b5;
  color: #ffffff !important;
}
.team-link-btn.btn-linkedin:hover {
  background-color: #005582;
}

.team-link-btn.btn-orcid {
  background-color: #a6ce39;
  color: #1d2b00 !important;
}
.team-link-btn.btn-orcid:hover {
  background-color: #8bb226;
}

.team-link-btn.btn-scholar {
  background-color: #4285f4;
  color: #ffffff !important;
}
.team-link-btn.btn-scholar:hover {
  background-color: #2b6cb0;
}

.team-link-btn.btn-website {
  background-color: #01a1c0;
  color: #ffffff !important;
}
.team-link-btn.btn-website:hover {
  background-color: #00778f;
}

.team-review-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 18px;
  color: #92400e;
}
.team-review-notice h4 {
  margin: 0 0 4px 0;
  color: #b45309;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.team-review-notice p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Team page: restore mobile stacking */
@media (max-width: 992px) {
  .content-wrapper.team-page-wrapper {
    grid-template-columns: 1fr;
  }
  .team-page-wrapper .main-content {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .team-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Nav "Getting Started" highlight: white text, arrow on an orange chip for contrast */
.main-menu > li > a.nav-start {
  color: #ffffff;
}
.nav-start-arrow {
  display: inline-block;
  background: var(--accent);
  color: #2b1a05;
  font-size: 9px;
  line-height: 1;
  padding: 3px 4px;
  border-radius: 3px;
}
