/* Shared by every screen: reset, focus, hidden text, icons. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus, #1a5fd0); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 12px 16px; background: #000; color: #fff; border-radius: 6px; }
.skip:focus { top: 8px; }

.loading, .load-error { padding: 48px 20px; text-align: center; font-size: 1.05rem; }

dialog { color: inherit; }
dialog::backdrop { background: rgb(0 0 0 / 0.55); }

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