/* CSS fallback also keeps raw imported tables reachable before JavaScript runs. */
body .news-main, body .article, body .entry-content { min-width: 0; }
body .article h1, body .entry-content { overflow-wrap: anywhere; }
body .entry-content table:not(.rtable) {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.5;
}
body .entry-content .sna-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line, #e5eaf3);
  border-radius: 8px;
  margin: 0 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}
body .entry-content .sna-table-scroll:focus-visible { outline: 3px solid var(--blue, #2563eb); outline-offset: 2px; }
body .entry-content .sna-table-scroll > table:not(.rtable) { display: table; overflow: visible; margin: 0; max-width: none; }
body .entry-content .sna-table-scroll[data-wide="true"] > table { min-width: 40rem; }
body .entry-content table:not(.rtable) th, body .entry-content table:not(.rtable) td {
  width: auto !important;
  height: auto !important;
  min-width: 6rem;
  padding: 10px 12px;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
  vertical-align: top;
}
body .entry-content .sna-table-hint { margin: .5rem 0; color: var(--muted, #687083); font-size: .82rem; }
body .entry-content .sna-table-hint[hidden] { display: none; }
body .entry-content img { max-width: 100% !important; height: auto !important; }
body .entry-content iframe, body .entry-content video { max-width: 100%; }
body .entry-content pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 639px) {
  body .article .entry-content { font-size: 1rem; line-height: 1.7; }
  body .article .entry-content > p:first-child { font-size: 1rem; }
  body .article h1 { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.25; }
  body .article .entry-content ul, body .article .entry-content ol { padding-left: 1.35rem; }
  body .entry-content figure.wp-block-table { margin-left: 0; margin-right: 0; max-width: 100%; }
}
