/* S-1/S-2: numeric tables keep contributions aligned, with weight/score beneath. */
@media (max-width: 639.98px) {
  .ar-prose .ar-table--numeric,
  .ar-prose .ar-table--stacked {
    overflow: visible;
  }

  .ar-prose .ar-table--numeric table,
  .ar-prose .ar-table--numeric thead,
  .ar-prose .ar-table--numeric tbody,
  .ar-prose .ar-table--stacked table,
  .ar-prose .ar-table--stacked tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .ar-prose .ar-table--numeric tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 12px;
  }

  .ar-prose .ar-table--numeric thead tr {
    justify-content: space-between;
    border-bottom: 1px solid #1B1B1F;
  }

  .ar-prose .ar-table--numeric th {
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    font-size: 14px;
    letter-spacing: 0;
  }

  .ar-prose .ar-table--numeric th:not(:first-child):not(:last-child) {
    display: none;
  }

  .ar-prose .ar-table--numeric tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid #C9C2C3;
  }

  .ar-prose .ar-table--numeric td {
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .ar-prose .ar-table--numeric td:first-child {
    order: 0;
    flex: 1 1 50%;
    font-weight: 600;
  }

  .ar-prose .ar-table--numeric td:last-child {
    order: 1;
    margin-left: auto;
    text-align: right;
    font-family: 'Space Grotesk', sans-serif;
    font-variant-numeric: tabular-nums;
  }

  /* A zero-height flex break keeps all metadata together on the second line. */
  .ar-prose .ar-table--numeric tbody tr::before {
    content: '';
    order: 2;
    flex-basis: 100%;
  }

  .ar-prose .ar-table--numeric td:not(:first-child):not(:last-child) {
    align-items: baseline;
    order: 3;
    margin: 0;
    padding-top: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--bloom-secondary, #5C5C60);
  }

  .ar-prose .ar-table--numeric td:not(:first-child):not(:last-child):not(.ar-table__empty) {
    display: flex;
  }

  .ar-prose .ar-table--numeric td:not(:first-child):not(:last-child)::before {
    content: attr(data-label) ' ';
    font-family: 'Inter Tight', sans-serif;
    white-space: pre;
  }

  .ar-prose .ar-table--numeric td:nth-child(n+3):not(:last-child) {
    margin-left: -12px;
  }

  .ar-prose .ar-table--numeric td:nth-child(n+3):not(:last-child)::after {
    content: '\00B7';
    order: -1;
    margin-inline: 8px;
    font-family: 'Inter Tight', sans-serif;
  }

  .ar-prose .ar-table--numeric td.ar-table__empty {
    display: none;
  }

  .ar-prose .ar-table--numeric tbody tr.ar-table__total {
    border-top: 1px solid #1B1B1F;
    border-bottom-color: #1B1B1F;
    font-weight: 600;
  }

  /* S-10: the total row reads "Total ... 70.0" on one line; its weight is always 100%. */
  .ar-prose .ar-table--numeric tr.ar-table__total td:not(:first-child):not(:last-child) {
    display: none;
  }

  .ar-prose .ar-table--numeric tbody tr:has(+ .ar-table__total) {
    border-bottom: 0;
  }

  .ar-prose .ar-table--numeric tbody tr:last-child td {
    border-bottom: 0;
  }

  /* S-3: the row title leads; HireSalt is the first labelled answer. */
  .ar-prose .ar-table--stacked thead {
    display: none;
  }

  .ar-prose .ar-table--stacked tbody tr {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid #C9C2C3;
  }

  .ar-prose .ar-table--stacked tbody tr:first-child {
    padding-top: 0;
  }

  .ar-prose .ar-table--stacked td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 12px;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: var(--bloom-secondary, #5C5C60);
  }

  .ar-prose .ar-table--stacked td:first-child {
    display: block;
    order: -2;
    padding-top: 0;
    font-weight: 600;
    color: #1B1B1F;
  }

  .ar-prose .ar-table--stacked td:last-child {
    order: -1;
    color: #1B1B1F;
    font-weight: 600;
  }

  .ar-prose .ar-table--stacked tbody tr:last-child td {
    border-bottom: 0;
  }

  .ar-prose .ar-table--stacked tbody tr:last-child {
    border-bottom-color: #1B1B1F;
  }

  .ar-prose .ar-table--stacked td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bloom-secondary, #5C5C60);
  }

  .ar-prose .ar-table--stacked td:empty::after {
    content: '\2014';
  }
}

/* S-4: inline padding enlarges link boxes without moving the prose baselines. */
@media (max-width: 1279.98px) {
  .ar-prose p a,
  .ar-prose li a {
    padding-block: 12px;
  }
}

/* S-5: tablet headers remain a readable, compact two-dimensional table. */
@media (min-width: 640px) and (max-width: 1279.98px) {
  .ar-prose table {
    font-size: 16px;
  }

  .ar-prose thead th {
    font-size: 14px;
  }
}

/* MKT-S2: keep the article navigation reachable on narrow touch screens. */
@media (max-width: 767px) {
  .ar-foot__link {
    min-width: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .ar-top__row,
  .ar-top__nav {
    flex-wrap: wrap;
  }
}
