/* The public pages (About, Terms, Privacy, Acceptable use, Copyright, the report form), written by src/pages.js. The colours and the font are the
   shared Altron tokens of tokens.css (docs/DESIGN.md 8), which the page links first: dark by default, light when the system asks for it.
   Nothing here is loaded from another site. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font);
}

.skip { position: absolute; left: -10000px; top: 0; z-index: 10; padding: 8px 14px; border-radius: 0 0 8px 0; background: var(--accent-fill); color: var(--on-accent); }
.skip:focus { left: 0; }

.site-head { padding: 14px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.2rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.brand img { display: block; }

main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 28px 20px 48px; }
.page { margin: 0 0 32px; }
h1 { margin: .2em 0 .6em; font-size: 1.9rem; line-height: 1.2; }
h2 { margin: 1.8em 0 .5em; font-size: 1.3rem; line-height: 1.3; }
h3 { margin: 1.4em 0 .4em; font-size: 1.08rem; line-height: 1.3; }
p, ul, ol, blockquote { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .25em 0; }
hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
blockquote { padding: .7em 1em; border-left: 4px solid var(--accent-fill); border-radius: 0 8px 8px 0; background: var(--panel); }
blockquote p:last-child { margin-bottom: 0; }
code { padding: .1em .35em; border-radius: 4px; background: var(--panel-2); font: .92em var(--font-mono); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.page-figure { margin: 0 0 1.4em; }
.page-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.updated { color: var(--muted); font-size: .9rem; }
.ref { font: 1.1rem var(--font-mono); }

/* A {{VARIABLE}} nobody has filled in: shown so that a page cannot go public with a blank it hides. */
.var-unset { padding: 0 .2em; border-radius: 3px; outline: 2px dashed var(--warn); outline-offset: 1px; background: var(--warn-soft); font-weight: 600; }

.report-form { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 4px; font-weight: 600; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px;
  background: var(--panel); color: var(--text); font: inherit;
}
textarea { resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 12px 0; }
.check label { margin: 0; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: var(--accent-fill); }
fieldset.claim { margin: 0; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
fieldset.claim legend { padding: 0 6px; font-weight: 700; }
.hint { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.field-error { margin: 6px 0 0; color: var(--bad); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--bad); }
.form-errors { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--bad); border-left-width: 6px; border-radius: 8px; background: var(--panel); }
.form-errors p { margin-bottom: .4em; }
.form-errors ul { margin-bottom: 0; }
.form-errors a { color: var(--bad); }
.actions { margin: 0; }
button { padding: 11px 22px; border: 0; border-radius: 10px; background: var(--accent-fill); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: var(--accent-fill-hover); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-foot { padding: 18px 20px; background: var(--panel); border-top: 1px solid var(--line); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 46rem; margin: 0 auto; }
.site-foot a { color: var(--muted); }
.site-foot a:hover, .site-foot a[aria-current="page"] { color: var(--text); }
