/* Troy Doty Homes: phone layout fixes (mobile check, Nov 25, 2026). Loaded after site.css on every page.
   Same look; only sizes change. */

@media (max-width: 600px) {
  /* Form fields at 16px on phones: iPhones zoom the whole page in when someone taps a field with smaller text,
     and the page stays zoomed after typing. 14 to 15px fields become 16px; nothing else changes. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), select, textarea { font-size: 16px !important; }
}

@media (min-width: 601px) and (max-width: 999px) {
  /* Card grids on tablets (two across) ended with one card alone (2, 2, 1). Three, six or nine cards now sit three
     across; any other odd count gives the last card the full row. */
  .grid.g3:has(> :nth-child(3n):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.g3:not(:has(> :nth-child(3n):last-child)) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
