/* === h5-polish 20261011 — desktop rules unchanged === */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, svg, canvas { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
@media (max-width: 960px) {
  html, body { overflow-x: clip; }
  img, video { max-width: 100% !important; height: auto !important; }
  article, .article-content, .news-content, .content, .rich-text, .post-body, .page-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  table { max-width: 100%; }
  pre, code { max-width: 100%; overflow-x: auto; }
  input, select, textarea { font-size: 16px !important; max-width: 100%; box-sizing: border-box; }
  .container, .inner, .wrap, .content, .page-main, .site-main {
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(1.35rem, 5.5vw, 1.85rem); line-height: 1.25; }
  h2 { font-size: clamp(1.15rem, 4.5vw, 1.45rem); }
}
