/* public/assets/ui/framework/01_reset.css
   KomodUI Reset v0.1
   - Predictable box model
   - Prevent horizontal overflow on mobile
   - Safe defaults for media / tables
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Mobile overflow protection: clamp layout width */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* Better default text sizing on iOS/Android */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Remove default margins */
body {
  margin: 0;
}

/* Make media behave */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Prevent “long strings” from breaking layout */
pre,
code {
  overflow-wrap: anywhere;
}

/* Tables: don’t exceed container by default */
table {
  max-width: 100%;
  border-collapse: collapse;
}

/* Form elements inherit font */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Lists clean slate (we’ll style explicitly when needed) */
ul,
ol {
  margin: 0;
  padding: 0;
}

/* Headings / paragraphs base (real typography in 02_base.css) */
h1, h2, h3, h4, p {
  margin: 0;
}

/* Accessible focus ring baseline (actual ring in 02_base.css via tokens) */
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
} 