/**
 * Default Styles for HTML5 (W3C spec)
 *
 * https://html.spec.whatwg.org/multipage/rendering.html
 */

/**
 * 15.3.10 Form controls
 */
input, select, button, textarea {
    letter-spacing: initial;
    word-spacing: initial;
    line-height: initial;
    text-transform: initial;
    text-indent: initial;
    text-shadow: initial;
}

input, select, textarea {
    text-align: initial;
}

input:is([type=reset i], [type=button i], [type=submit i]), button {
    text-align: center;
}

input:is([type=reset i], [type=button i], [type=submit i], [type=color i]), button {
    display: inline-block;
}

input:is([type=radio i], [type=checkbox i], [type=reset i], [type=button i],
[type=submit i], [type=color i], [type=search i]), select, button {
    box-sizing: border-box;
}

textarea { white-space: pre-wrap; }


/**
 * 15.3.11 The hr element
 */
hr {
    color: gray;
    border-style: inset;
    border-width: 1px;
    margin-block-start: 0.5em;
    margin-inline-end: auto;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    overflow: hidden;
}
hr[align=left i] { margin-left: 0; margin-right: auto; }
hr[align=right i] { margin-left: auto; margin-right: 0; }
hr[align=center i] { margin-left: auto; margin-right: auto; }
hr[color], hr[noshade] { border-style: solid; }
