/* CGA public site, after the canvas (design/cga-canvas PR-Register / PR-Holder / PR-Verify-* / PR-Footer).
   System fonts only; self-hosted images; no inline styles (CSP style-src 'self'). Gold is an accent, never text. */
:root {
  color-scheme: light;
  --page: #f5f5f5; --surface: #ffffff; --line: #e3e6eb; --line-soft: #eef0f3; --field: #c7ccd4;
  --text: #1f2937; --muted: #4b5563; --navy: #1b2a4a; --link: #1b3a6b; --link-hover: #10264a; --gold: #b7791f;
  --ok: #166534; --ok-bg: #f0fdf4; --bad: #b42318; --bad-bg: #fef3f2;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--text); font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.brand:hover { text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.brand-domain { font-size: 12px; color: var(--muted); }
header.site nav { display: flex; gap: 26px; font-size: 15px; }
header.site nav a { color: var(--text); padding-bottom: 6px; border-bottom: 3px solid transparent; }
header.site nav a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }

main { flex: 1; width: 100%; padding: 28px 48px 48px; display: flex; flex-direction: column; gap: 20px; }
.intro, .card { max-width: 720px; }
h1 { margin: 0; font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.intro p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }

.req-note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.req { color: var(--bad); font-weight: 700; }
.field { margin: 0 0 18px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input { display: block; width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--field); border-radius: 6px; }
input:focus { outline: 3px solid #d7deea; outline-offset: 0; border-color: var(--navy); }
input:user-invalid { border-color: var(--bad); }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.cf-turnstile { margin: 22px 0 16px; min-height: 65px; }
.privacy { background: #f8fafc; border: 1px solid var(--line-soft); border-left: 3px solid var(--gold); border-radius: 6px; padding: 12px 14px; font-size: 13px; color: var(--text); margin: 0 0 20px; }
button { height: 46px; padding: 0 20px; font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: 6px; cursor: pointer; }
button:hover { background: #24375f; }
button:focus-visible { outline: 3px solid #d7deea; outline-offset: 2px; }
button:disabled { opacity: .6; cursor: default; }
#status { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
#status:empty { display: none; }
#status[data-state="ok"] { color: var(--ok); background: var(--ok-bg); border: 1px solid #bbf7d0; border-radius: 6px; padding: 12px 14px; }
#status[data-state="error"] { color: var(--bad); background: var(--bad-bg); border: 1px solid #fecdca; border-radius: 6px; padding: 12px 14px; }
#status[data-state="busy"] { color: var(--muted); font-weight: 400; }

footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 48px; font-size: 13px; color: var(--muted); }
footer.site p { margin: 0; }

@media (max-width: 700px) {
  header.site { padding: 14px 16px; }
  header.site nav { gap: 18px; font-size: 14px; }
  .brand-name { font-size: 16px; }
  main { padding: 20px 16px 36px; }
  .card { padding: 18px 16px; }
  h1 { font-size: 24px; }
  button { width: 100%; }
  footer.site { padding: 20px 16px; }
}
