/* Labels are present in the HTML, so the mobile layout needs no JavaScript. */
.pa-table-label { display: none; }

@media (max-width: 700px) {
  .article-copy,
  .aside-note { overflow-wrap: break-word; }

  /* Unconverted complex tables keep readable columns and horizontal scrolling. */
  .table-region th,
  .table-region td,
  .comparison-table th,
  .comparison-table td {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .table-region:has(> .pa-mobile-cards),
  .comparison-table:has(> .pa-mobile-cards) {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  table.pa-mobile-cards {
    display: block;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
  }

  .pa-mobile-cards > caption {
    display: block;
    padding: 0 0 12px;
    border: 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  /* Retain the real column headings for assistive technology. */
  .pa-mobile-cards > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .pa-mobile-cards > tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  .pa-mobile-cards > tbody > tr {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #fff;
  }

  .pa-mobile-cards > tbody > tr > :is(td, th) {
    display: block;
    width: auto;
    min-width: 0;
    padding: 11px 16px;
    border: 0;
    background: transparent;
    color: var(--body, #29364f);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .pa-mobile-cards > tbody > tr > :first-child {
    padding: 14px 16px;
    background: #edf3fb;
    color: var(--ink, #19233b);
    font-size: 1rem;
    font-weight: 700;
  }

  .pa-mobile-cards > tbody > tr > :nth-child(n + 3) {
    border-top: 1px solid #edf1f6;
  }

  .pa-mobile-cards .pa-table-label {
    display: block;
    margin: 0 0 4px;
    color: #49617f;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .pa-mobile-cards :is(td, th) > :last-child { margin-bottom: 0; }
}
