/* Local styles for Neural Networks vs INLA */

/* ---------------------------------------------------------------------
   results-table -- the side-by-side numeric comparison tables
   (Freq. NN | Neural Network | INLA columns).  Same look as the
   spec-tables on the marginal-posteriors and predictions-nas pages so
   the learn/ section reads consistently.
   --------------------------------------------------------------------- */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.results-table th,
.results-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.results-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
}
/* First column is a row label (parameter / feature name), left-aligned;
   the remaining method columns are numeric and look better centred. */
.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
}
.results-table th:not(:first-child),
.results-table td:not(:first-child) {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.results-table tr:last-child td {
  border-bottom: 0;
}
.results-table tr:hover td {
  background: #f8fafc;
}
.results-table code {
  background: #eef2ff;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: #4338ca;
}

/* ---------------------------------------------------------------------
   avail-table -- the feature availability matrix using check/cross
   cells (✓ / —).  Shares the results-table base with brighter accents
   for the check/cross glyphs.
   --------------------------------------------------------------------- */
.avail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.94rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.avail-table th,
.avail-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.avail-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
}
.avail-table th:first-child,
.avail-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #1e293b;
}
.avail-table th:not(:first-child),
.avail-table td:not(:first-child) {
  text-align: center;
  font-size: 1.05rem;
}
.avail-table tr:last-child td {
  border-bottom: 0;
}
.avail-table tr:hover td {
  background: #f8fafc;
}
.avail-table td.check {
  color: #16a34a;       /* green-600 */
  font-weight: 700;
}
.avail-table td.cross {
  color: #94a3b8;       /* slate-400 */
}

/* Mobile: tighten paddings and drop the font slightly so the numeric
   columns still fit without horizontal scroll on a phone. */
@media (max-width: 768px) {
  .results-table,
  .avail-table {
    font-size: 0.84rem;
  }
  .results-table th,
  .results-table td,
  .avail-table th,
  .avail-table td {
    padding: 0.45rem 0.55rem;
  }
}
