/* ╔═══════════════════════════════════════════════════════════════╗
   ║  CSS Reset — Modern Minimal                                   ║
   ║  Ported from: ezhard-ezhaul/src/styles/reset.css              ║
   ║  Uses logical properties for RTL/LTR neutrality.              ║
   ╚═══════════════════════════════════════════════════════════════╝ */

@layer reset {

  /* ── Box model ──────────────────────────────────────────────── */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* ── Document ───────────────────────────────────────────────── */
  html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
  }

  body {
    min-block-size: 100dvh;
    line-height: 1.5;
  }

  /* ── Lists ──────────────────────────────────────────────────── */
  ul, ol {
    list-style: none;
  }

  /* ── Media ──────────────────────────────────────────────────── */
  img, picture, video, canvas, svg {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
  }

  /* ── Form elements ─────────────────────────────────────────── */
  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

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

  /* ── Anchors ────────────────────────────────────────────────── */
  a {
    color: inherit;
    text-decoration: none;
  }

  /* ── Headings ───────────────────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    overflow-wrap: break-word;
  }

  /* ── Paragraph ──────────────────────────────────────────────── */
  p {
    overflow-wrap: break-word;
  }

  /* ── Tables ─────────────────────────────────────────────────── */
  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  /* ── Misc ───────────────────────────────────────────────────── */
  fieldset { border: none; }
  dialog   { padding: 0; border: none; }
  [hidden] { display: none !important; }

  /* ── Focus management ──────────────────────────────────────── */
  :focus:not(:focus-visible) {
    outline: none;
  }

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