/* ================================================================
   Minimal normalize — safe alongside Tailwind (preflight: false)
   Removed: opinionated button/link/heading/body/p styles that
   conflicted with Tailwind utilities and component designs.
   ================================================================ */

/* Box model */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Remove default body margin */
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive images */
img, video, svg {
    border-style: none;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text semantics */
b, strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* Hidden attribute */
[hidden], template {
    display: none;
}

/* Form normalization — structure only, no opinionated colours */
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

textarea {
    overflow: auto;
    resize: vertical;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Block elements */
details { display: block; }
summary { display: list-item; }

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/* Pre / code */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
    white-space: pre-wrap;
}

code, kbd, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Abbr */
abbr[title] {
    border-bottom: none;
    text-decoration: underline dotted;
}

/* Print */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        box-shadow: none !important;
        color: #000 !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre { white-space: pre-wrap !important; }

    blockquote, pre {
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    thead { display: table-header-group; }

    img, tr { break-inside: avoid; }

    h2, h3, p {
        orphans: 3;
        widows: 3;
    }

    h2, h3 { break-after: avoid; }
}
