/*
 * Browser defaults for app.html and the standalone pages that explicitly opt in.
 * Keep the existing page geometry/typography without a CSS framework.
 * Public registration and isolated engine frames keep their own page baselines.
 * This is an element reset, not a collection of layout/component utility classes.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background: #fff;
}
[hidden] { display: none !important; }

/* Headings also occur in existing display HTML, outside explicitly styled controls. */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; font-weight: 500; line-height: 1.2; color: inherit; }
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + .9vw); }
h3 { font-size: calc(1.3rem + .6vw); }
h4 { font-size: calc(1.275rem + .3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p, blockquote, figure { margin: 0 0 1rem; }
hr { margin: 1rem 0; color: inherit; border: 0; border-top: 1px solid; opacity: .25; }
ol, ul { padding-left: 2rem; }
dl, ol, ul { margin-top: 0; margin-bottom: 1rem; }
ol ol, ol ul, ul ol, ul ul { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin: 0 0 .5rem; }
b, strong { font-weight: bolder; }
small { font-size: .875em; }
sub, sup { position: relative; font-size: .75em; line-height: 0; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }
a { color: #0d6efd; text-decoration: underline; }
a:hover { color: #0a58ca; }
a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }
code, kbd, pre, samp { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; }
pre { display: block; margin: 0 0 1rem; overflow: auto; font-size: .875em; }
pre code { font-size: inherit; color: inherit; word-break: normal; }
code { font-size: .875em; color: #d63384; overflow-wrap: break-word; }
a > code { color: inherit; }
img, svg { vertical-align: middle; }
iframe { border: 0; }

/* Feature CSS supplies table/control appearance; normalize the native defaults beneath it. */
table { caption-side: bottom; border-collapse: collapse; }
caption { padding: .5rem 0; color: rgba(33,37,41,.75); text-align: left; }
th { text-align: inherit; }
tbody, td, tfoot, th, thead, tr { border-color: inherit; border-style: solid; border-width: 0; }
label { display: inline-block; }
button { border-radius: 0; }
button, input, optgroup, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled), [role="button"] { cursor: pointer; }
button:focus:not(:focus-visible) { outline: 0; }
select { overflow-wrap: normal; }
select:disabled { opacity: 1; }
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: .5rem; font-size: calc(1.275rem + .3vw); line-height: inherit; }
legend + * { clear: left; }
output { display: inline-block; }
summary { display: list-item; cursor: pointer; }
progress { vertical-align: baseline; }

/* Retain date/search/color input geometry across the browsers used by the application. */
::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-text,
::-webkit-datetime-edit-year-field { padding: 0; }
::-webkit-inner-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-color-swatch-wrapper { padding: 0; }
::-moz-focus-inner { padding: 0; border: 0; }
::file-selector-button { font: inherit; }

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4, legend { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
