/*
 * Quod static tables - replaces wpDataTables (MWD-1514 / MWD-1465, CVE-2026-49080), 2026-11-18.
 * Markup: <div class="quod-static-table-wrap"><table class="quod-static-table" id="quod-table-N">...
 * Look copied from the former wpDataTables "light" skin + the site's wpDataTables colour settings:
 *   header text hsl(37,100%,50%), body text #41413b, borders rgba(65,65,59,.29),
 *   odd-row tint rgba(65,65,59,.06), hover rgba(65,65,59,.12), 14px / 22px, padding 10px.
 * Modifier .quod-static-table--simple = former "simple" tables (grey header, 13px, full grid).
 */
.quod-static-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 10px;
}
.quod-static-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  border: none;
  background-color: transparent;
  font-size: 14px;
  line-height: 22px;
  color: #41413b;
  text-align: left;
}
.quod-static-table caption {
  /* Table titles were hidden (show_title = 0); keep the caption for screen readers only. */
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.quod-static-table th,
.quod-static-table td {
  padding: 10px;
  vertical-align: middle;
  text-align: left;
  color: #41413b;
  word-break: normal;
  overflow-wrap: break-word;
}
.quod-static-table thead th {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: hsl(37, 100%, 50%);
  background: #fff none;
  border: none;
  border-bottom: 3px solid rgba(65, 65, 59, 0.29);
  white-space: nowrap;
}
.quod-static-table tbody td {
  border: 1px solid rgba(65, 65, 59, 0.29);
  background-color: #fff;
}
.quod-static-table tbody tr:nth-child(odd) td { background-color: rgba(65, 65, 59, 0.06); }
.quod-static-table tbody tr:hover > td { background-color: rgba(65, 65, 59, 0.12); }
.quod-static-table tbody td:first-child { border-left-color: #fff; }
.quod-static-table tbody td:last-child { border-right-color: #fff; }
.quod-static-table tbody tr:last-child td { border-bottom-color: #fff; }
.quod-static-table a { text-decoration: underline; }

/* Former wpDataTables "simple" tables (17, 29, 30, 32) */
.quod-static-table--simple { font-size: 13px; line-height: normal; }
.quod-static-table--simple thead th {
  font-size: 13px;
  line-height: normal;
  font-weight: 400;
  background-color: #eee;
  border: 1px solid rgba(65, 65, 59, 0.29);
  white-space: normal;
}
.quod-static-table--simple tbody tr:nth-child(odd) td { background-color: #fff; }
.quod-static-table--simple tbody tr:hover > td { background-color: rgba(65, 65, 59, 0.12); }
.quod-static-table--simple td { vertical-align: top; }

/* Search box + sortable headers (connectivity page only; added by js/quod-static-tables.js) */
.quod-static-table-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #41413b;
}
.quod-static-table-search input[type="search"] {
  max-width: 320px;
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid rgba(65, 65, 59, 0.29);
  border-radius: 3px;
  color: #41413b;
  background: #fff;
}
.quod-static-table-search input[type="search"]:focus { outline: 2px solid hsl(37, 100%, 50%); outline-offset: 1px; }
.quod-static-table-count { font-size: 13px; }
.quod-static-table th .quod-sort {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
}
.quod-static-table th .quod-sort:focus-visible { outline: 2px solid hsl(37, 100%, 50%); outline-offset: 2px; }
.quod-static-table th .quod-sort::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.35;
}
.quod-static-table th[aria-sort="ascending"] .quod-sort::after { border-top: 0; border-bottom: 5px solid currentColor; opacity: 1; }
.quod-static-table th[aria-sort="descending"] .quod-sort::after { opacity: 1; }
.quod-static-table tr.quod-static-table-empty td { text-align: center; font-style: italic; }
