/* CSS Reset: comprehensive, minimal opinionated reset */

/* Base resets */
:root {
    -moz-tab-size: 4;
    tab-size: 4;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Document defaults */
html, body, #root {
    height: 100%;
}

body {
    line-height: 1.5;
    background: transparent;
    color: inherit;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Links */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

/* Images & media */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* Forms & controls */
button, input, optgroup, select, textarea {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove inner focus ring in Firefox for buttons while preserving outline on keyboard focus */
button::-moz-focus-inner { border: 0; padding: 0; }

/* Fieldset/legend */
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

/* Quotes */
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: ""; content: none; }

/* Details/summary */
details { display: block; }
summary { display: list-item; }

/* Accessibility helpers kept minimal (do not remove focus outlines globally) */
:focus { outline: 2px solid Highlight; outline-offset: 2px; }

/* Misc */
hr { border: 0; border-top: 1px solid currentColor; height: 0; }
svg:not(:root) { overflow: hidden; }

/* Touch */
a, button { -webkit-tap-highlight-color: transparent; }