/* ═══════════════════════════════════════════════════════════════════════════
   PHYSICSFORUM.ORG — CSS RESET
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

/* NOTE (v4.7): this rule must never touch KaTeX's accent SVGs (.katex svg)
   — see the scoped protection override at the bottom of base.css, which
   restores KaTeX's intended positioning with higher specificity. */
img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role="list"], ol[role="list"] {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  overflow-wrap: break-word;
}

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

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

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

p, li {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
}

hr {
  border: none;
}

:focus-visible {
  outline: 2px solid var(--color-electric);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}
