/*
1. Prevent padding and border from affecting element width.
2. Allow adding a border to an element by just adding a border-width.
*/

*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before,
::after {
    --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/

html,
:host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
}

/*
Remove the margin in all browsers.
*/

body {
    margin: 0;
    line-height: inherit;
}

/*
Add the correct height in Firefox.
*/

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

/*
Correct the inheritance of border color in Firefox.
*/

abbr:where([title]) {
    text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

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

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
    font-weight: bolder;
}

/*
Use the user's configured mono font-family by default.
*/

code,
kbd,
samp,
pre {
    font-family: ui-monospace, monospace;
    font-size: 1em;
}

/*
Add the correct font size in all browsers.
*/

small {
    font-size: 80%;
}

/*
Prevent sub and sup elements from affecting the line height.
*/

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/*
Remove text indentation from table contents in Chrome and Safari.
*/

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

/*
Reset buttons.
*/

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
    text-transform: none;
}

/*
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

/*
Remove the inner border and padding in Firefox.
*/

::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/*
Restore the focus styles unset by the previous rule.
*/

:-moz-focusring {
    outline: auto;
}

/*
Remove the additional ':invalid' styles in Firefox.
*/

:-moz-ui-invalid {
    box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
    vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

/*
Correct the odd appearance in Chrome and Safari.
*/

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/*
Remove the inner padding in Chrome and Safari.
*/

::-webkit-search-decoration {
    -webkit-appearance: none;
}

/*
Correct the inability to style clickable types in iOS and Safari.
*/

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
    display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol,
ul,
menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
    padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
    resize: vertical;
}

/*
Ensure consistent appearance for form controls.
*/

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

/*
Set default cursor for buttons.
*/

button,
[role="button"] {
    cursor: pointer;
}

/*
Disable pointer events on disabled elements.
*/

:disabled {
    cursor: default;
}

/*
Make images and videos responsive.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/*
Ensure hidden elements stay hidden.
*/

[hidden] {
    display: none;
}