/* Mobile adaptation for the restored iWeb archive. Original page geometry is retained. */
.john-mobile-tools { display: none; }
.john-canvas-frame { display: block; }
@media screen and (max-width: 900px) {
  html { overflow-x: hidden; }
  body { min-width: 0 !important; overflow-x: hidden; }
  .john-mobile-tools { display: block; box-sizing: border-box; width: 100%; background: #fff; padding: 10px 12px; border-bottom: 1px solid #ccc; font: 16px/1.45 Arial, sans-serif; text-align:left; }
  .john-mobile-tools details { border: 1px solid #c7c7c7; border-radius: 7px; background: #fff; }
  .john-mobile-tools summary { box-sizing: border-box; padding: 12px 14px; min-height: 46px; font-weight: 700; color: #444; cursor: pointer; }
  .john-mobile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; gap: 5px; border-top: 1px solid #eee; max-height: 55vh; overflow-y:auto; }
  .john-mobile-links a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 8px; text-decoration: none; border-radius: 5px; color: #555; background: #f5f5f5; font-size: 15px; }
  .john-mobile-links a[aria-current="page"] { color:#9f1850; font-weight: bold; background: #fdeaf3; }
  .john-zoom-button { background:#f4f4f4; border:1px solid #bbb; border-radius:6px; color:#333; font: 14px Arial,sans-serif; min-height: 44px; padding: 9px 13px; margin-top: 8px; cursor:pointer; }
  .john-mobile-note { font: 12px/1.4 Arial,sans-serif; color:#666; margin: 7px 0 0; }
  .john-canvas-frame { display:block; position:relative; margin:0 auto; padding:0; }
  #body_content { transform-origin: 0 0; margin: 0 !important; }
  body.john-fullsize-mode { overflow-x:auto !important; }
  body.john-fullsize-mode .john-canvas-frame { margin:0; }
}
