/* Plain, functional styling for the generated forms and problem pages (design/05-runtime.md section 9.4).
   The visual design of the public site is step 7's. Colours are solid, so contrast can be computed
   (WCAG 2.2 1.4.3 and 1.4.11, checked by the accessibility scripts). */
:root {
  --text: #1a1a1a;
  --ground: #ffffff;
  --muted: #4a4a4a;
  --edge: #6b6b6b;
  --focus: #0b4fbf;
  --error: #a3001b;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--ground); font: 1rem/1.5 system-ui, sans-serif; }
main { max-width: 44rem; margin: 0 auto; padding: 1rem; overflow-wrap: anywhere; }
h1 { font-size: 1.5rem; line-height: 1.25; }
h2 { font-size: 1.25rem; }
.skip { position: absolute; left: -100rem; top: 0; padding: 0.5rem; background: var(--ground); color: var(--text); }
.skip:focus { left: 0.5rem; }
.status { color: var(--muted); }
.field, fieldset { margin: 0 0 1rem; }
fieldset { border: 1px solid var(--edge); padding: 0.5rem 1rem; }
label { display: block; margin: 0.5rem 0 0.25rem; }
.choice { display: flex; align-items: center; gap: 0.5rem; }
.choice label { display: inline; margin: 0; }
input[type="text"], select { min-height: 2.5rem; width: 100%; max-width: 100%; padding: 0.25rem 0.5rem; font: inherit; color: var(--text); background: var(--ground); border: 1px solid var(--edge); }
input[type="radio"] { width: 1.5rem; height: 1.5rem; margin: 0; }
button { min-height: 2.75rem; padding: 0.5rem 1rem; font: inherit; color: var(--ground); background: var(--text); border: 1px solid var(--text); }
summary { min-height: 1.5rem; padding: 0.25rem 0; }
a.licences { display: inline-block; min-height: 1.5rem; padding: 0.25rem 0; }
a, summary, button, input, select { outline-offset: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); }
[aria-invalid="true"] { border: 2px solid var(--error); }
.error { color: var(--error); margin: 0.25rem 0 0; }
.tag { color: var(--muted); }
output { display: block; min-height: 1.5rem; margin: 0 0 1rem; overflow-wrap: anywhere; font-size: 1.25rem; }
output .labels, output .suggest { display: block; font-size: 1rem; color: var(--muted); }
/* A refusal answered in the browser is three lines: its title, what it means, how to fix it
   (design/09-browser.md section 7). */
output .title, output .means, output .fix { display: block; }
output .means, output .fix { font-size: 1rem; }
#exact, #how, #rests, #cards { overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }
/* The site's header and footer (design/06-site.md section 9.3): the site's name, the index and the legal
   links, as plain lists of links with targets at least 24 px high (WCAG 2.2 2.5.8). */
header.site, footer.site { max-width: 44rem; margin: 0 auto; padding: 1rem; }
header.site ul, footer.site ul { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
header.site a, footer.site a { display: inline-block; min-height: 1.5rem; padding: 0.25rem 0; }
/* Every link in the content and the footer is a target at least 24 px high (WCAG 2.2 2.5.8): the index,
   the related pages, the claim cards' licence links and the site pages' lists (design/06-site.md
   section 14). A long link or address (the licences page shows sources' addresses as text) wraps rather
   than widening the page at 320 px (1.4.10; main wraps anywhere when a word would not fit). */
main a, footer.site a { display: inline-block; min-height: 1.5rem; padding: 0.25rem 0; max-width: 100%; overflow-wrap: anywhere; }
