/*
 * Novexdent – reusable responsive table styles
 * Scope: only elements with the .nx-table-scroll / .nx-table classes.
 * Typography, colors and spacing are inherited from the site stylesheet.
 *
 * Markup:
 * <div class="nx-table-scroll" role="region" aria-labelledby="CAPTION-ID" tabindex="0">
 *   <table class="nx-table">
 *     <caption id="CAPTION-ID">…</caption>
 *     <thead>…</thead>
 *     <tbody>…</tbody>
 *   </table>
 * </div>
 */

.nx-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nx-table-scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.nx-table {
  width: 100%;
  min-width: 32rem; /* keeps columns readable; the wrapper scrolls on narrow screens */
  border-collapse: collapse;
}

.nx-table caption {
  caption-side: top;
  text-align: left;
}

.nx-table th,
.nx-table td {
  text-align: left;
  vertical-align: top;
  border: 1px solid currentColor;
  border-color: rgba(128, 128, 128, 0.35);
}

.nx-table thead th {
  white-space: nowrap;
}

/* Responsive article images (figure > img); no spacing or color overrides */
.nx-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}
