/* Minimal reset. Only what native ES module + no-build CSS needs. */

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

html, body, div, span, h1, h2, h3, h4, h5, h6, p,
ul, ol, li, form, fieldset, table, th, td, figure {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* App frame: the document never scrolls. The shell is pinned to the viewport and only
   .shell__content scrolls, so the topbar can never move on any device. */
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

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

ul, ol {
  list-style: none;
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* Text content (headings, paragraphs, table cells, labels) is not editable, so it
   should not show the text-insertion (I-beam) cursor on hover. Only real editable
   fields keep it. */
body {
  cursor: default;
}

input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="number"], input[type="password"], input[type="tel"], textarea,
[contenteditable="true"] {
  cursor: text;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: none;
}

::selection {
  background: var(--brand-soft);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
