/* Public shared pages only. All horizontal scrolling belongs to a table region. */
html, body { max-width: 100%; overflow-x: clip; }
main, .card, .turn, #response, .statr-visual { min-width: 0; max-width: 100%; }
#response .shared-table-wrap { min-width: 0; max-width: 100%; width: 100%; margin: 0 0 1em; overflow: visible; white-space: normal; }
#response .shared-table { width: 100%; min-width: 0; border-collapse: collapse; white-space: normal; }
#response .shared-table th, #response .shared-table td { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
#response .shared-table-label { display: none; }
#response .shared-table-value { min-width: 0; }
#response .shared-table-atom { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
#response .shared-table--simple { table-layout: fixed; }
#response .shared-table--simple tr > :first-child { width: 60%; }
#response .shared-table--simple tr > :last-child { width: 40%; }
#response .shared-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 8px; }
#response .shared-table-scroll:focus-visible { outline: 2px solid #b9adff; outline-offset: 3px; }
#response .shared-table--wide { width: max-content; min-width: 100%; table-layout: auto; }
#response .shared-table--wide th, #response .shared-table--wide td { min-width: 100px; max-width: 260px; }
#response .shared-table--wide tr > :first-child { min-width: 160px; }
#response .shared-table-hint { margin: 0 0 8px; color: #aeb5c4; font-size: .82rem; white-space: normal; }

@media (max-width: 720px) {
  #response .shared-table--grouped, #response .shared-table--grouped tbody { display: block; width: 100%; }
  /* Explicit table roles and header associations are supplied by tables.js. */
  #response .shared-table--grouped thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  #response .shared-table--grouped tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 18px 0; border-bottom: 1px solid #ffffff20; }
  #response .shared-table--grouped tbody tr:first-child { border-top: 1px solid #ffffff20; }
  #response .shared-table--grouped tbody tr > th, #response .shared-table--grouped tbody tr > td { display: block; min-width: 0; width: auto; padding: 0; border: 0; background: none; font-weight: 400; }
  #response .shared-table--grouped .shared-table-label { display: block; margin: 0 0 4px; color: #aeb5c4; font-size: .8rem; font-weight: 600; line-height: 1.4; }
  #response .shared-table--grouped .shared-table-title { grid-column: 1 / -1; order: -1; }
  #response .shared-table--grouped .shared-table-title .shared-table-value { font-weight: 700; }
  #response .shared-table--grouped .shared-table-title .shared-table-label { display: none; }
  #response .shared-table--grouped .shared-table-detail { grid-column: 1 / -1; order: 1; }
  #response .shared-table-single-fact > :not(.shared-table-title):not(.shared-table-detail) { grid-column: 1 / -1; }
}
