/**
 * FlexBase - CSS Reset
 * Modern CSS reset for consistent cross-browser styling
 * Based on modern-normalize with custom additions for FlexBase
 */

/* ========================================
   Box Sizing
   ======================================== */

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

/* ========================================
   Document
   ======================================== */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
}

/* ========================================
   Sections
   ======================================== */

main {
    display: block;
}

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

p {
    margin: 0;
}

address {
    font-style: normal;
}

/* ========================================
   Grouping Content
   ======================================== */

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

pre {
    font-family:
        ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
        monospace;
    font-size: 1em;
    margin: 0;
}

blockquote {
    margin: 0;
}

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

dl,
dd {
    margin: 0;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.875em;
}

/* ========================================
   Text-level Semantics
   ======================================== */

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

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

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family:
        ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
        monospace;
    font-size: 1em;
}

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;
}

/* ========================================
   Embedded Content
   ======================================== */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    border-style: none;
}

svg {
    overflow: hidden;
    vertical-align: middle;
}

iframe {
    border: 0;
}

/* ========================================
   Forms
   ======================================== */

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

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
    cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
    cursor: not-allowed;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    padding: 0;
    display: table;
    max-width: 100%;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
    resize: vertical;
}

[type="checkbox"],
[type="radio"] {
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

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

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

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

::placeholder {
    color: inherit;
    opacity: 0.5;
}

/* ========================================
   Interactive
   ======================================== */

summary {
    display: list-item;
    cursor: pointer;
}

details {
    display: block;
}

dialog {
    background-color: white;
    border: solid;
    color: black;
    display: block;
    height: fit-content;
    left: 0;
    margin: auto;
    padding: 1em;
    position: absolute;
    right: 0;
    width: fit-content;
}

dialog:not([open]) {
    display: none;
}

/* ========================================
   Tables
   ======================================== */

table {
    border-collapse: collapse;
    border-spacing: 0;
    text-indent: 0;
}

th {
    text-align: inherit;
    font-weight: inherit;
}

td {
    padding: 0;
}

/* ========================================
   Accessibility
   ======================================== */

[hidden] {
    display: none !important;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
