
/*
Theme Name: childtheme
Template: generatepress
*/
.comparison-table.enhanced {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 0 auto;
  font-family: inherit;
  table-layout: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Light drop shadow */
}

/* Wrapper for horizontal scroll on mobile */
.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* Header Row */
.comparison-table.enhanced thead th {
  position: sticky;
  top: 0;
  background-color: #E6F0FF;        /* Tint Blue 10% */
  border-top: 4px solid #006AFF;     /* Primary Blue */
  border-bottom: 2px solid #006AFF;  /* Thicker bottom border under header */
  color: #1A1A1A;                    /* Dark text */
  font-weight: 700;                  /* Extra bold for emphasis */
  font-size: 1rem;                   /* 16px (against root 16px) */
  padding: 0.75rem 1rem;
  text-align: left;
  z-index: 2;
}

/* All Cells (both th and td) */
.comparison-table.enhanced th,
.comparison-table.enhanced td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E2E8F0;  /* Light gray row border */
  min-height: 44px;                  /* Touch-friendly row height */
  vertical-align: middle;
}

/* Feature Column (left) – left-align text */
.comparison-table.enhanced .col-feature {
  text-align: left;
  font-weight: 500;                  /* Semi-bold for feature names */
  color: #2D3748;                    /* Slightly darker gray for labels */
}

/* Value Columns (numeric/text) – center-align, bold the numbers */
.comparison-table.enhanced .col-value {
  text-align: center;
  font-weight: 600;                  /* Bold for numeric emphasis */
  color: #1A202C;                    /* Neutral Gray 800 */
}

/* Zebra Striping: alternate background on tbody rows */
.comparison-table.enhanced tbody tr:nth-child(odd) {
  background-color: #FFFFFF;         /* White for odd rows */
}
.comparison-table.enhanced tbody tr:nth-child(even) {
  background-color: #F7FAFC;         /* Very light gray for even rows */
}

/* Hover Effect on tbody rows (optional) */
.comparison-table.enhanced tbody tr:hover {
  background-color: #EDF2F7;         /* Slightly darker gray on hover */
}

/* Responsive font-size & padding on small screens */
@media (max-width: 480px) {
  .comparison-table.enhanced th,
  .comparison-table.enhanced td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* ~14px */
    min-height: 40px;
  }
}
