/* cte-mobile.css — mobile-friendly add-on for chuckthomas.com
 *
 * INSTALL (2 steps):
 * 1. Upload this file to the same folder as cte.css, then add this line
 *    in the <head> of each page AFTER the existing cte.css link:
 *      <link rel=StyleSheet href="cte-mobile.css" type="text/css">
 * 2. In the <head> of each page, replace the viewport tag with:
 *      <meta name="viewport" content="width=device-width, initial-scale=1">
 *    (The old tag zoomed the page out and blocked pinch-zoom.)
 *
 * This file only ADDS rules — it does not change cte.css, so removing
 * this one link reverses everything.
 */

/* Images (including fixed-width product photos) never overflow the screen */
img {
  max-width: 100%;
  height: auto;
}

/* Image-type inputs (add-to-cart buttons) also stay within the screen */
input[type="image"] {
  max-width: 100%;
  height: auto;
}

/* Tables never force sideways scrolling */
table {
  max-width: 100%;
}

/* Safety net: no horizontal scrolling, ever */
body {
  overflow-x: hidden;
}

/* Small screens: slightly smaller type, roomier tap targets */
@media screen and (max-width: 640px) {
  body {
    font-size: 19px;
  }
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 22px; }
  h5 { font-size: 15px; }
    table { font-size: 19px; }

  /* Bigger, thumb-friendly tap targets for nav links */
  a.nav:link,
  a.nav:visited,
  a.nav:hover {
    padding: 10px 8px;
    line-height: 2;
  }
}
