/* =============================================================================
   Reset — minimal, modern. Loaded before base.css.
   ========================================================================== */

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

* { margin: 0; }

html, body { height: 100%; }

/* Disable the browser's pull-to-refresh + rubber-band overscroll.
 * Deal Intelligence is an app surface, not a document — pull-to-refresh
 * yanks users out of mid-edit modals and there's no scrollable page above
 * the viewport for it to meaningfully reveal. Per spec, `contain` only
 * blocks scroll *chaining*; Safari treats the native pull-to-refresh
 * action separately and keeps firing it unless we go all the way to
 * `none`, which also kills the rubber-band glow. Apply on html (the
 * actual scroll root) — body inheriting matters less but doesn't hurt. */
html { overscroll-behavior: none; }
body { overscroll-behavior: none; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul, ol { list-style: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--accent-emphasis);
  outline-offset: 2px;
}

/* Prevent flash of unstyled custom elements (parity with design-system pages) */
:not(:defined) { visibility: hidden; }
