/* ═══════════════════════════════════════════════
   SOLAR SMART ADVISOR — CSS RESET
   reset.css
   Minimal modern reset. Preserves useful browser defaults.
═══════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  height: 100%;
  /* .step-body is the app's ONLY intended scroll container (see its own
     comment in layout.css). Without a hard height + overflow:hidden here,
     a swipe on a step with short content (nothing for .step-body itself
     to scroll) falls through to the document — html/body scroll instead,
     dragging .step-header down with it while the truly position:fixed
     progress bar stays put, reading as "the whole page moves" instead of
     just the section below the header. */
  overflow: hidden;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* iOS Safari treats two fast taps on the same spot (e.g. mashing a qty
   +/- button) as a double-tap-to-zoom gesture and zooms the whole page,
   even with the viewport's maximum-scale=1.0 — that meta tag blocks
   pinch-zoom but not double-tap-zoom, which is a separate iOS gesture.
   touch-action:manipulation tells the browser this element is only ever
   tapped/panned, never double-tap-zoomed, so it stops waiting to
   distinguish the two and the zoom never fires. Applied broadly to every
   real tap target rather than one-off per button. #property-grid's own
   touch-action:none (custom drag) is more specific and still wins there. */
button, a, [onclick], input, select, textarea {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* Remove animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface3); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dim); }
