/* Desktop/tablet: preserve original table; do not add spacing or change fonts. */
.star-mobile-table-cards { display: none; }

@media (max-width: 767px) {
  /* Hide only tables for which we have successfully generated readable cards. */
  body.single-post figure.star-mobile-original-table,
  body.single-post table.star-mobile-original-table { display: none !important; }

  body.single-post .star-mobile-table-cards {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0 2em;
    box-sizing: border-box;
    clear: both;
  }

  body.single-post .star-mobile-table-card {
    display: block;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #d9e2ee;
    border-left: 4px solid #c69c42;
    border-radius: 10px;
    padding: 16px 16px 12px;
    margin: 0 0 16px;
    box-shadow: 0 2px 8px rgba(13, 39, 78, .04);
    overflow-wrap: anywhere;
  }

  body.single-post .star-mobile-table-title {
    display: block;
    margin: 0 0 12px !important;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e9ef;
    color: #142c4a;
    font-family: inherit;
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  body.single-post .star-mobile-table-field {
    box-sizing: border-box;
    padding: 4px 0 12px;
    margin: 0 0 8px;
    border-bottom: 1px solid #f0f2f5;
  }
  body.single-post .star-mobile-table-field:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  body.single-post .star-mobile-table-label {
    color: #9a7427;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1.4 !important;
    margin: 0 0 5px;
    overflow-wrap: anywhere;
  }
  body.single-post .star-mobile-table-value,
  body.single-post .star-mobile-table-value * {
    color: #34475c;
    font-size: 17px !important;
    line-height: 1.58 !important;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  body.single-post .star-mobile-table-value p { margin: 0 0 6px !important; }
  body.single-post .star-mobile-table-value p:last-child { margin-bottom: 0 !important; }

  body.single-post .star-mobile-table-caption {
    color: #5b6472;
    font-size: 14px !important;
    line-height: 1.5;
    margin: 0 0 10px;
  }

  /* Fallback for nonstandard tables that cannot safely become cards. */
  body.single-post .entry-content table:not(.star-mobile-original-table),
  body.single-post .post-content table:not(.star-mobile-original-table) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
