/**
 * Responsive tables for editorial blog content.
 *
 * The local custom properties map the Design System v2 semantic roles without
 * introducing its global prototype reset. Production font family names win.
 */
.table-responsive,
.wc-blog-table-scroll {
  --wc-table-surface: var(--surface-sunken, #141414);
  --wc-table-surface-alt: var(--surface-raised, #181819);
  --wc-table-text: var(--text-primary, #fff);
  --wc-table-text-secondary: var(--text-secondary, #c1c1c1);
  --wc-table-border: var(--border-hairline, rgba(255, 255, 255, 0.1));
  --wc-table-brand: var(--text-brand, #0372ff);
  --wc-table-success: var(--wc-success, #28ea9b);
  --wc-table-danger: var(--wc-danger, #fc4343);
}

.table-responsive,
.wc-blog-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: var(--space-24, 24px) 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--wc-table-brand) var(--wc-table-surface);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.table-responsive:focus-visible,
.wc-blog-table-scroll:focus-visible {
  outline: 2px solid var(--wc-table-brand);
  outline-offset: 4px;
}

.table-responsive > table,
.wc-blog-table-scroll > table {
  width: 100%;
  min-width: 100%;
  margin: 0;
  color: var(--wc-table-text);
  background: var(--wc-table-surface);
  border: 1px solid var(--wc-table-border);
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Worksans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.table-responsive > table thead,
.wc-blog-table-scroll > table thead {
  color: var(--wc-table-text);
  background: var(--wc-table-surface-alt);
}

.table-responsive > table tbody,
.wc-blog-table-scroll > table tbody {
  color: var(--wc-table-text-secondary);
}

.table-responsive > table tr,
.wc-blog-table-scroll > table tr {
  background: transparent;
}

.table-responsive > table tbody tr:nth-child(even),
.wc-blog-table-scroll > table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.table-responsive > table th,
.table-responsive > table td,
.wc-blog-table-scroll > table th,
.wc-blog-table-scroll > table td {
  min-width: 136px;
  padding: var(--space-16, 16px);
  border-right: 1px solid var(--wc-table-border);
  border-bottom: 1px solid var(--wc-table-border);
  overflow-wrap: anywhere;
  vertical-align: top;
}

.table-responsive > table th:last-child,
.table-responsive > table td:last-child,
.wc-blog-table-scroll > table th:last-child,
.wc-blog-table-scroll > table td:last-child {
  border-right: 0;
}

.table-responsive > table tbody tr:last-child > *,
.wc-blog-table-scroll > table tbody tr:last-child > * {
  border-bottom: 0;
}

.table-responsive > table thead th,
.wc-blog-table-scroll > table thead th {
  color: var(--wc-table-text);
  font-family: "Neuebit", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.55px;
  line-height: 1.4;
  text-transform: uppercase;
}

.table-responsive > table tbody th,
.wc-blog-table-scroll > table tbody th {
  color: var(--wc-table-text);
  font-weight: 600;
}

.table-responsive :is(.is-highlighted, .highlight-column),
.wc-blog-table-scroll :is(.is-highlighted, .highlight-column) {
  color: var(--wc-table-text);
  background: rgba(3, 114, 255, 0.1);
  box-shadow: inset 2px 0 0 var(--wc-table-brand), inset -2px 0 0 var(--wc-table-brand);
}

.table-responsive :is(.table-checkmark, .table-indicator--check),
.wc-blog-table-scroll :is(.table-checkmark, .table-indicator--check) {
  color: var(--wc-table-success);
  font-weight: 700;
}

.table-responsive :is(.table-cross, .table-indicator--cross),
.wc-blog-table-scroll :is(.table-cross, .table-indicator--cross) {
  color: var(--wc-table-danger);
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  #article .table-responsive.wc-blog-table-scroll {
    margin: var(--space-24, 24px) 0;
  }

  #article .table-responsive.wc-blog-table-scroll > table,
  .table-responsive > table,
  .wc-blog-table-scroll > table {
    margin: 0 !important;
  }

  .table-responsive > table th,
  .table-responsive > table td,
  .wc-blog-table-scroll > table th,
  .wc-blog-table-scroll > table td {
    min-width: 128px;
    padding: 12px var(--space-16, 16px);
  }
}
