:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.6; }
.site-header, main, footer { width: min(100% - 40px, 760px); margin-inline: auto; }
.site-header { padding-block: 28px 20px; border-bottom: 1px solid #d6d6d6; }
.app-name { margin: 0 0 12px; font-weight: 600; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
a { color: #0645ad; text-underline-offset: 3px; overflow-wrap: anywhere; }
nav a[aria-current="page"] { color: #222; font-weight: 600; }
main { padding-block: 26px 38px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 23px; line-height: 1.3; margin: 32px 0 10px; }
p { margin: 0 0 16px; }
ul { padding-left: 24px; }
li + li { margin-top: 10px; }
.updated, .field-help, .required { color: #555; }
.updated, .field-help { font-size: 15px; }
.field-help { margin: 5px 0 9px; }
footer { padding-block: 20px 36px; border-top: 1px solid #d6d6d6; }
form { margin-top: 26px; }
.field { margin-bottom: 22px; }
label { display: block; margin-bottom: 7px; font-weight: 600; }
.required { font-weight: 400; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid #777; border-radius: 4px; background: #fff; color: #222;
}
textarea { resize: vertical; min-height: 180px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a61916; }
fieldset { min-width: 0; margin: 26px 0; border: 1px solid #bbb; padding: 20px; }
legend { padding-inline: 8px; font-weight: 600; }
fieldset .field:last-child { margin-bottom: 0; }
button {
  min-height: 48px; padding: 11px 20px; border: 1px solid #0645ad;
  border-radius: 4px; background: #0645ad; color: #fff; cursor: pointer;
  white-space: normal; overflow-wrap: anywhere;
}
button[type="submit"] { width: 100%; }
button:hover { background: #053888; }
button:disabled { cursor: wait; background: #666; border-color: #666; }
.secondary-button { background: #fff; color: #0645ad; margin-bottom: 16px; }
.secondary-button:hover { background: #f2f2f2; }
:focus-visible { outline: 3px solid #0645ad; outline-offset: 3px; }
.notice { padding: 15px; border: 1px solid #777; margin: 20px 0; overflow-wrap: anywhere; }
.notice.error { border-color: #a61916; color: #8d1512; }
.notice.success { border-color: #25652d; color: #205725; }
.field-error { color: #a61916; font-size: 15px; margin-top: 7px; }
[hidden] { display: none !important; }

@media (max-width: 420px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  fieldset { padding: 14px; }
}

@media print {
  .site-header, footer { display: none; }
  main { width: 100%; padding: 0; }
  body { font-size: 12pt; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; break-after: avoid; }
  a { color: #222; }
}
