/* css styles */
.hl-table { border-collapse: collapse; font-size: 0.85rem; margin-bottom: 1rem; }
.hl-table th, .hl-table td { padding: 2px 10px; border-bottom: 1px solid #ddd; text-align: right; }
.hl-table tr.kept td { background: #d8f0d8; font-weight: 600; }
.hl-table tr.dropped td { color: #999; text-decoration: line-through; }
.hl-table td.new, .hl-table th.new { background: #fff3b0; }
.side-by-side { 
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items:
  flex-start; 
  width: 100%;
}
.side-by-side > div { 
  overflow-x: auto; 
  min-width: 0; 
  width: 100%;
}
.hl-table { font-size: 0.75rem; }

.plot-and-code { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.plot-and-code > div { flex: 3 1 320px; min-width: 0; }
.plot-and-code > pre { flex: 1 1 260px; min-width: 0; }

.plot-code {
  background: #f1f5f9;
  color: #1e293b;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  overflow-x: auto;
}
.plot-code code { color: inherit; background: none; }

.hl-table td.kept-col, .hl-table th.kept-col { background: #d8f0d8; font-weight: 600; }
.hl-table td.dropped-col, .hl-table th.dropped-col { color: #999; text-decoration: line-through; }

.references p {
  padding-left: 2em;
  text-indent: -2em;
}

.feedback {
  margin: 8px 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
}
.feedback.good {
  background: #d1fae5;
  color: #065f46;
  animation: pop 0.3s ease;
}
@keyframes pop {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.table-scroll {
  max-height: 280px;      /* change to taste */
  overflow: auto;         /* scrolls both ways when needed */
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.hl-table {
  font-size: 0.8em;       /* smaller text */
  border-collapse: collapse;
  width: 100%;
}

.hl-table th,
.hl-table td {
  padding: 2px 8px;       /* tighter cells */
  white-space: nowrap;    /* wide tables scroll sideways instead of wrapping */
}

.hl-table thead th {
  position: sticky;       /* header stays visible while scrolling */
  top: 0;
  background: #f9fafb;
}

.side-by-side > div {
  flex: 1;
  min-width: 0;           /* lets each side shrink so its own box can scroll */
}