/* Defense Advancement comparison tables.
   In article content, only <table class="da-comparison-table"> is required.
   JavaScript generates .da-comparison-table__viewport and the sortable buttons. */

/* Scrolling container created automatically; prevents wide tables overflowing article content. */
.da-comparison-table__viewport {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d9e2e9;
  border-radius: 8px;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #9aacbc #f1f4f7;
}
.da-comparison-table__viewport *,
table.da-comparison-table * { box-sizing: border-box; }

/* Apply the styles to the table itself, not a manually-authored outer section. */
table.da-comparison-table {
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: #243447;
}
table.da-comparison-table caption {
  text-align: left;
  padding: 8px 12px;
}
table.da-comparison-table thead th,
table.da-comparison-table tbody th,
table.da-comparison-table tbody td {
  box-sizing: border-box;
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #e2e8ee;
  border-bottom: 1px solid #e2e8ee;
  white-space: normal;
  overflow-wrap: break-word;
  min-width: 145px;
  max-width: 265px;
}
table.da-comparison-table thead th {
  background: #1b3149;
  color: #fff;
  font-weight: 700;
  vertical-align: middle;
}
table.da-comparison-table tbody tr:nth-child(odd) > * { background: #fff; }
table.da-comparison-table tbody tr:nth-child(even) > * { background: #f5f8fa; }
table.da-comparison-table tbody tr:hover > * { background: #eaf3fa; }
table.da-comparison-table tbody tr:last-child > * { border-bottom: 0; }
table.da-comparison-table tr > *:last-child { border-right: 0; }

/* First column stays in place when the table scrolls horizontally. */
table.da-comparison-table thead tr > :first-child,
table.da-comparison-table tbody tr > :first-child {
  position: sticky;
  left: 0;
  width: 208px;
  min-width: 208px;
  max-width: 208px;
  border-right: 2px solid #b7c8d7;
}
table.da-comparison-table thead tr > :first-child {
  z-index: 4;
  background: #14283e;
}
table.da-comparison-table tbody tr > :first-child {
  z-index: 2;
  font-weight: 700;
}

/* Sort buttons are injected into plain <th> headings by the shared script. */
table.da-comparison-table .da-comparison-table__sort {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}
table.da-comparison-table .da-comparison-table__sort:hover,
table.da-comparison-table .da-comparison-table__sort:active {
  color: #c8ebff;
  background: transparent;
  border: 0;
}
table.da-comparison-table .da-comparison-table__sort:focus-visible {
  outline: 2px solid #9adcff;
  outline-offset: 3px;
}
.da-comparison-table__arrow {
  flex: none;
  font-size: 18px;
  font-weight: 400;
  color: #a8c5db;
}
table.da-comparison-table th[aria-sort="ascending"] .da-comparison-table__arrow,
table.da-comparison-table th[aria-sort="descending"] .da-comparison-table__arrow {
  color: #fff;
}

.da-comparison-table__hint {
  margin: 0.5rem 0 -0.75rem;
  font-size: 0.875rem;
  color: #526477;
}
.da-comparison-table__notes {
  color: #526477;
  font-size: 12px;
  margin-bottom:0;
  line-height: 1.55;
}
.da-comparison-table__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 600px) {
  table.da-comparison-table thead tr > :first-child,
  table.da-comparison-table tbody tr > :first-child {
    width: 164px;
    min-width: 164px;
    max-width: 164px;
  }
  table.da-comparison-table thead th,
  table.da-comparison-table tbody th,
  table.da-comparison-table tbody td {
    padding: 11px 10px;
    font-size: 12px;
  }
}
