/* Wave3 candidate only: retained Shanghai layout reflows at enlarged text sizes. */
body.expatchina-page--shanghai .ecv5-city-longform {
  overflow-wrap: anywhere;
}
body.expatchina-page--shanghai .ecv5-city-longform :is(.ecv5-city-grid, .ecv3-prose-layout, .ecv5-orientation-grid, .ecv5-arrival-heading, .ecv5-arrival-path, .ecv3-split, .ecv5-city-section-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
body.expatchina-page--shanghai .ecv5-city-longform :is(.ecv5-route-node, .ecv5-arrival-marker) {
  max-width: 100%;
}
body.expatchina-page--shanghai .ecv5-city-longform .ecv3-kicker {
  flex-wrap: wrap;
}
body.expatchina-page--shanghai .ecv5-city-longform :is(.ecv5-city-section-heading, .ecv3-side-heading) {
  position: static;
}
body.expatchina-page--shanghai .ecv5-city-longform .ecv3-table-wrap {
  min-width: 0;
  width: 100%;
}
body.expatchina-page--shanghai .ecv5-city-longform .ecv3-copy-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
body.expatchina-page--shanghai .ecv5-city-longform .ecv3-copy-table th,
body.expatchina-page--shanghai .ecv5-city-longform .ecv3-copy-table td {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  body.expatchina-page--shanghai .ecv5-city-longform .ecv3-copy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  body.expatchina-page--shanghai .ecv5-city-longform .ecv3-copy-table :is(tbody, tr, td) {
    display: block;
    width: 100%;
  }
  body.expatchina-page--shanghai .ecv5-city-longform .ecv3-copy-table td:first-child {
    background: #002b3c;
    color: white;
    font-weight: 700;
  }
}
