:root { --ink: #16202b; --accent: #2b7f96; --accent-soft: #65B7CC; --line: #c9ced6; --bg: #f4f6f8; --bad: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--ink); background: var(--bg); }
.top { background: #fff; border-bottom: 3px solid var(--accent-soft); padding: 14px 20px; text-align: center; }
.top img { height: 48px; max-width: 80%; }
main { max-width: 760px; margin: 24px auto 64px; padding: 0 16px; }
form[method="post"]:not(.inline), .done, .admin { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; padding: 28px; }
h1 { font-size: 1.6rem; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 32px 0 4px; padding-top: 20px; border-top: 1px solid #dde3ea; }
.note { margin: 0 0 8px; color: #4a5766; font-size: .92rem; }
.field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { color: var(--bad); }
input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.sub { flex: 1 1 180px; display: block; margin-bottom: 8px; }
.sub:has(.narrow) { flex: 0 1 130px; }
.sub span { display: block; font-size: .8rem; color: #4a5766; margin-top: 2px; }
.options { display: grid; gap: 6px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid #dde3ea; border-radius: 6px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: #eef7fa; }
.option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.invalid input:not([type="radio"]):not([type="checkbox"]) { border-color: var(--bad); }
.error { color: var(--bad); margin: 6px 0 0; font-size: .92rem; font-weight: 600; }
.banner { background: #fdecea; border: 1px solid var(--bad); color: #7a1a14; padding: 12px 14px; border-radius: 6px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button { margin-top: 28px; padding: 12px 28px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; }
button:hover { background: #226a7e; }
button.secondary { margin: 0; padding: 8px 14px; background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.fine { font-size: .82rem; color: #4a5766; }
.done { text-align: center; }

.admin { max-width: none; }
.who { color: #4a5766; font-size: .9rem; margin: 0 0 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #dde3ea; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: #4a5766; }
.empty, .blank { color: #7a8794; }
a { color: var(--accent); }
dl { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 8px 16px; margin: 12px 0; }
dt { color: #4a5766; }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
form.inline { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
@media (max-width: 520px) { form[method="post"]:not(.inline), .done, .admin { padding: 18px; } dl { grid-template-columns: 1fr; gap: 2px 0; } dd { margin-bottom: 10px; } }

/* ---- multi-page forms, rules, signatures, uploads ---- */
[hidden] { display: none !important; }
main.wide { max-width: 980px; }
select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
}
select:focus-visible, textarea:focus-visible, canvas:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
input.short { max-width: 180px; }
input[type="file"] { padding: 8px; background: var(--bg); }
.hint { margin: -2px 0 6px; font-size: .88rem; color: #4a5766; }
.steps { margin: 0 0 12px; font-size: .88rem; font-weight: 600; color: #4a5766; text-transform: uppercase; letter-spacing: .04em; }
.static h2 { margin-top: 28px; }
.page > .static:first-child h2 { margin-top: 8px; padding-top: 0; border-top: 0; }
.prose { margin: 14px 0 0; overflow-wrap: anywhere; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px; padding-left: 22px; }
.figure { margin: 14px 0 0; text-align: center; }
.figure img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid #dde3ea; margin: 24px 0 0; }
.grid .row { align-items: flex-start; }
.rowlabel { flex: 0 0 24px; padding-top: 10px; font-weight: 600; color: #4a5766; }
.off { opacity: .45; }
.invalid select, .invalid textarea, .invalid canvas { border-color: var(--bad); }
.sig canvas { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 3; background: #fff;
  border: 1px dashed #7a8794; border-radius: 6px; touch-action: none; cursor: crosshair; }
.sigbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; max-width: 600px; margin-top: 6px; }
.nav { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.nav button { margin-top: 0; }
.nav button.secondary { padding: 12px 22px; }
button:disabled { opacity: .6; cursor: default; }
.sigimg { max-width: 300px; height: auto; border: 1px solid #dde3ea; border-radius: 4px; background: #fff; }
dd ul { margin: 0; padding-left: 18px; font-weight: 400; }

/* ---- fold-out reference text (document lists) ---- */
.more { margin: 14px 0 0; border: 1px solid #dde3ea; border-radius: 6px; background: #fafbfc; }
.more > summary { padding: 10px 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.more > summary:hover { text-decoration: underline; }
.more > summary:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.more[open] > summary { border-bottom: 1px solid #dde3ea; }
.more .prose { margin: 0; padding: 12px 14px 4px; font-size: .94rem; }
.prose ol { margin: 0 0 10px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
