/* Simple, Clean Comparison Table Styles */
.comparison-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: auto;
  font-size: 13px;
  background: white;
  border: 1px solid #e5e7eb;
}

.comparison-table th,
.comparison-table td {
  padding: 6px 10px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.comparison-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  position: relative;
}


.comparison-table th:first-child {
  text-align: left;
  min-width: 140px;
  font-size: 12px;
  transform: none;
}

/* Rotated headers for compact width */
.rotated-header {
  height: 80px;
  width: 50px;
  position: relative;
  vertical-align: bottom;
  padding: 0 !important;
  transform: skewX(-45deg);
  transform-origin: bottom left;
  background: #f9fafb;
  overflow: visible;
}


/* Remove top border from first rotated header to fix gap artifact */
.comparison-table th.rotated-header:nth-child(2) {
  border-top: none !important;
  border-top-color: transparent !important;
}

.rotated-text {
  position: absolute;
  bottom: 4px;
  left: 29px;
  transform: skewX(45deg) rotate(-45deg);
  transform-origin: bottom left;
  white-space: nowrap;
  font-size: 11px;
  padding: 0;
  text-align: left;
}

/* Capability name column */
.capability-name {
  text-align: left !important;
  font-size: 12px;
  color: #1f2937;
  font-weight: 500;
}

/* Score cells - subtle background colors */
.score-cell {
  font-weight: 600;
  font-size: 12px;
}

.high-score {
  background: #d4edda;
  color: #155724;
}

.mid-score {
  background: #fff3cd;
  color: #856404;
}

.low-score {
  background: #fef2f2;
  color: #721c24;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .comparison-table {
    font-size: 11px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 4px 6px;
  }
  
  .rotated-header {
    height: 80px;
    width: 30px;
  }
  
  .rotated-text {
    font-size: 10px;
  }
  
  .capability-name {
    font-size: 11px;
  }
  
  .score-cell {
    font-size: 11px;
  }
}