/* Element base shared by every page, and the 404 screen.
   Loaded after tokens.css and chrome.css, before page stylesheets. Colours only through
   tokens.css. Chrome (app bar, brand, language switch, .btn--*, .chip, .tick, .shell, .foot)
   lives in chrome.css; screens live in form, picker, pending, manage, profile, feed and
   reveal.css. */

[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---- Type ---- */
h1 { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 var(--s-2); }
h2 { font-size: var(--fs-xl); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 var(--s-2); }
p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }
a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Form controls ---- */
input[aria-invalid="true"] { border-color: var(--err-line); }
::placeholder { color: var(--text-3); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }

/* ---- 404 ---- */
.notfound { padding: var(--s-10) 0 var(--s-6); text-align: center; }
.notfound__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.notfound__title { margin-bottom: var(--s-2); }
.notfound__text { margin-bottom: var(--s-6); color: var(--text-2); }
