/* ============================================
   FairRoute Detail Page Styles
   Professional, clean, no emojis
   ============================================ */

/* Top Navigation */
.detail-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #000;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #000;
}

/* Hero Section */
.detail-hero {
  padding: 4rem 2rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  display: block;
  margin-bottom: 1rem;
}

.detail-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  max-width: 700px;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #222;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #eee;
}

/* Main Content */
.detail-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Section Styling */
.content-section {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}

.content-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  font-family: 'JetBrains Mono', monospace;
}

.section-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Text Blocks */
.text-block {
  margin-bottom: 2.5rem;
}

.text-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.text-block p {
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

/* Math Blocks */
.math-block {
  background: #f8f9fa;
  border-left: 3px solid #333;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.math-block p {
  margin: 0 0 0.5rem 0;
}

.math-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  display: block;
  margin: 0.5rem 0;
}

.math-desc {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem !important;
}

.constraint-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.constraint-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.9rem;
}

.constraint-list li:last-child {
  border-bottom: none;
}

.constraint-list code {
  font-family: 'JetBrains Mono', monospace;
  background: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
}

.info-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.info-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Parameters Table */
.params-section {
  margin-top: 2.5rem;
}

.params-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.params-table th,
.params-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.params-table th {
  font-weight: 600;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fafafa;
}

.params-table td:first-child {
  font-weight: 500;
}

.params-table td:nth-child(2) {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Pipeline Diagram */
.pipeline-diagram {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  padding: 1rem 0;
}

.pipeline-stage {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.25rem;
  min-width: 160px;
  flex-shrink: 0;
}

.stage-num {
  width: 24px;
  height: 24px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.stage-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.stage-content p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.pipeline-arrow {
  flex-shrink: 0;
  color: #ccc;
}

.pipeline-arrow svg {
  width: 24px;
  height: 24px;
}

/* GLS Visualization */
.gls-viz {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.gls-viz canvas {
  width: 100%;
  height: auto;
  display: block;
}

.gls-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.gls-legend span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gls-legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

/* Code Blocks */
.code-block {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-header {
  background: #2d2d2d;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-lang {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
}

.code-file {
  font-size: 0.75rem;
  color: #666;
  font-family: 'JetBrains Mono', monospace;
}

.code-block pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d4d4d4;
}

.code-block.terminal {
  background: #0d1117;
}

.code-block.terminal .code-header {
  display: none;
}

.code-block.terminal code {
  color: #7ee787;
}

/* Dimension Cards */
.dimension-cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.dim-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
}

.dim-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.dim-visual {
  margin-bottom: 1rem;
}

.dim-bar {
  height: 28px;
  background: #f0f0f0;
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.dim-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #10b981);
  border-radius: 4px;
  transition: width 0.3s;
}

.dim-marker {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
}

.dim-limit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #888;
  padding-right: 0.5rem;
}

.dim-bar.time {
  background: linear-gradient(90deg, #f0f0f0 0%, #f0f0f0 100%);
}

.dim-window {
  position: absolute;
  height: 100%;
  background: rgba(37, 99, 235, 0.2);
  border: 2px solid #2563eb;
  border-radius: 4px;
}

.dim-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #888;
  margin-top: 0.25rem;
}

.dim-card p {
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 0.75rem 0;
}

.dim-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #666;
  background: #f5f5f5;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

/* Penalty Table */
.penalty-table {
  margin: 2rem 0;
}

.penalty-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.penalty-table th,
.penalty-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.penalty-table th {
  font-weight: 600;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #fafafa;
}

.penalty-table tr.highlight {
  background: rgba(16, 185, 129, 0.08);
}

.penalty-table tr.highlight td {
  font-weight: 500;
}

/* Demo Section */
.demo-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.demo-sidebar {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
}

.demo-sidebar h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #333;
}

.config-group {
  margin-bottom: 1.25rem;
}

.config-group label {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.range-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-input input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: #ddd;
  border-radius: 2px;
  cursor: pointer;
}

.range-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
}

.range-value {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

.demo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.btn-run, .btn-reset {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-run {
  background: #333;
  color: #fff;
}

.btn-run:hover {
  background: #000;
}

.btn-reset {
  background: #fff;
  color: #555;
  border: 1px solid #ddd;
}

.btn-reset:hover {
  background: #f5f5f5;
}

.demo-stats {
  border-top: 1px solid #e5e5e5;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.stat-label {
  color: #666;
}

.stat-value {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* Demo Main */
.demo-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.canvas-container {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem;
}

.canvas-container canvas {
  width: 100%;
  height: auto;
  display: block;
}

.route-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: 1rem;
  background: #fafafa;
  border-radius: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-dist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #888;
}

/* Comparison Section */
.comparison-section {
  margin-top: 3rem;
}

.comparison-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.comparison-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.25rem;
}

.comparison-card.optimized {
  background: #f0fdf4;
  border-color: #86efac;
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comp-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.comp-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.comp-badge.baseline {
  background: #f5f5f5;
  color: #666;
}

.comp-badge.optimized {
  background: #dcfce7;
  color: #166534;
}

.comparison-card canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}

.comp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.comp-metric {
  text-align: center;
}

.cm-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.cm-label {
  font-size: 0.7rem;
  color: #666;
}

.comparison-vs {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  padding-top: 80px;
}

.improvement-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.improvement-banner.success {
  background: #dcfce7;
  color: #166534;
}

/* Benchmark Section */
.benchmark-block {
  margin: 2.5rem 0;
  padding: 2rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.benchmark-block h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.benchmark-block > p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1.5rem 0;
}

.chart-container {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.chart-container canvas {
  width: 100%;
  height: auto;
  display: block;
}

.chart-insights {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.insight {
  text-align: center;
}

.insight-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.insight-label {
  font-size: 0.75rem;
  color: #666;
}

/* Metrics Table */
.metrics-table-wrapper {
  overflow-x: auto;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}

.metrics-table th,
.metrics-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.metrics-table th {
  font-weight: 600;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #f5f5f5;
}

.metrics-table td:first-child {
  font-weight: 500;
}

.metrics-table td:not(:first-child) {
  font-family: 'JetBrains Mono', monospace;
}

.metrics-table .positive {
  color: #059669;
  font-weight: 600;
}

.metrics-table .neutral {
  color: #888;
}

/* Workload Comparison */
.workload-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.workload-panel {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
}

.workload-panel.optimized {
  background: #f0fdf4;
  border-color: #86efac;
}

.workload-panel h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.workload-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wb-row {
  display: grid;
  grid-template-columns: 24px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
}

.wb-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
}

.wb-track {
  height: 18px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.wb-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.wb-val {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

.gini-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.gini-badge.good {
  background: #dcfce7;
  color: #166534;
}

/* Architecture Section */
.arch-section {
  margin: 2rem 0;
}

.arch-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.arch-layer {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.25rem;
}

.arch-layer.primary {
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.layer-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  display: block;
  margin-bottom: 0.75rem;
}

.arch-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.arch-module {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.arch-module.main {
  grid-column: span 2;
  background: #f0f0f0;
}

.arch-module code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.arch-module p {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.arch-arrow {
  color: #ccc;
}

.arch-arrow svg {
  width: 20px;
  height: 20px;
}

/* Dependencies Grid */
.deps-section {
  margin: 2.5rem 0;
}

.deps-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.deps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dep-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
}

.dep-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.dep-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
}

.dep-version {
  font-size: 0.75rem;
  color: #888;
}

.dep-card p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Quick Start */
.quickstart-section {
  margin: 2.5rem 0;
}

.quickstart-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.qs-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qs-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
}

.qs-num {
  width: 32px;
  height: 32px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.qs-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.expected-output {
  margin-top: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem;
}

.expected-output span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.expected-output pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.5;
}

/* CLI Table */
.cli-section {
  margin: 2.5rem 0;
}

.cli-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.cli-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.cli-table th,
.cli-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cli-table th {
  font-weight: 600;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #fafafa;
}

.cli-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

/* Footer */
.detail-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.detail-footer p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.detail-footer a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.detail-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .detail-topnav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .detail-hero h1 {
    font-size: 2.5rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .demo-container {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-vs {
    padding: 0.5rem 0;
  }

  .workload-comparison {
    grid-template-columns: 1fr;
  }

  .deps-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-diagram {
    flex-direction: column;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }
}
