/* Colors and layout. The page has no external font or CSS dependency. */
:root {
  color-scheme: light;
  --ink: #24313c;
  --muted: #596774;
  --blue: #1f4e79;
  --line: #d7dee4;
  --soft: #f5f7f9;
  --error: #a32626;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: white;
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #4f7cac;
  outline-offset: 3px;
}
.shell {
  max-width: 1080px;
  margin: auto;
  padding: 64px 24px 0;
}
.header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0 23px;
  border-bottom: 2px solid var(--blue);
}
.logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
.header-copy {
  flex: 1;
  min-width: 0;
}
.institution {
  color: var(--blue);
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 3px;
}
.project {
  color: var(--blue);
  font-size: 29px;
  line-height: 1.2;
  font-weight: 750;
  margin: 3px 0 6px;
}
.project-area {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
h1 {
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 9px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.subtitle,
.round-intro {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.round-intro {
  margin-bottom: 25px;
}
.text-button {
  padding: 5px 0;
  background: none;
  border: 0;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
.header > .text-button {
  flex-shrink: 0;
}
.draft-bar {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 26px;
}
.layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  margin-top: 26px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  max-height: 65vh;
  overflow: auto;
}
.step-link {
  display: flex;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--muted);
  padding: 10px 8px;
  font-size: 13px;
}
.step-link.current {
  color: var(--blue);
  background: var(--soft);
  border-left-color: var(--blue);
  font-weight: 650;
}
.aside-note,
.job-menu-title {
  font-size: 12px;
  color: var(--muted);
}
.job-menu-title {
  margin: 0;
}
.mobile-progress {
  display: none;
}
.job-links,
.summary-edit {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.job-links {
  justify-content: space-between;
  margin-bottom: 14px;
}
.job-caption {
  font-size: 13px;
  color: var(--blue);
  margin: 0;
  font-weight: 600;
}
.question,
.decision {
  min-width: 0;
  border: 1px solid #b9c5cf;
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  padding: 19px 20px;
  margin-bottom: 28px;
}
.question {
  background: #f5f6f7;
  box-shadow: -5px 6px 12px rgba(36, 49, 60, 0.1);
}
.choice {
  background: #fff;
}
.question-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.question-index {
  display: block;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 5px;
}
.help,
.unit-hint,
.example-line {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.unit-hint,
.example-line {
  margin: 7px 0 12px;
}
.subheading {
  font-size: 15px;
  margin: 18px 0 9px;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.subfield {
  margin-top: 13px;
}
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 5px;
}
select,
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid #aebac4;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
input[type="file"] {
  display: block;
  width: 100%;
  font-size: 14px;
}
input:disabled {
  background: var(--soft);
}
.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.4;
}
.choice:hover {
  border-color: #93a7b8;
}
.choice.selected {
  border-color: var(--blue);
  background: #f3f7fa;
}
.choice input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.unknown-check {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.unknown-check input {
  accent-color: var(--blue);
}
.note {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.note label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.note textarea {
  min-height: 48px;
  font-size: 14px;
  padding: 8px 10px;
}
.meaning,
.notice {
  border-left: 3px solid #8198ab;
  background: var(--soft);
  margin: 13px 0;
  padding: 11px 13px;
  font-size: 14px;
}
.alert {
  border-left-color: var(--error);
  color: var(--error);
}
.field-error {
  color: var(--error);
  font-size: 13px;
  margin: 8px 0 0;
}
.field-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 1px var(--error);
  background: #fff8f8;
}
.choice-list.field-invalid {
  border: 1px solid var(--error);
  border-radius: 4px;
  padding: 8px;
}
.has-error > .field-label {
  color: var(--error);
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  background: white;
  color: var(--ink);
  border: 1px solid #aebac4;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 550;
}
.button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.round-count,
.review-meta {
  color: var(--muted);
  font-size: 13px;
}
.decision h3 {
  margin-top: 0;
}
.decision .button {
  margin: 8px 8px 0 0;
}
.attachment-list {
  list-style: none;
  padding: 0;
  font-size: 13px;
}
.attachment-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.file-name {
  overflow-wrap: anywhere;
}
.file-status {
  display: block;
  color: var(--error);
}
.summary-job {
  border-top: 2px solid var(--blue);
  margin-top: 28px;
  padding-top: 8px;
}
.job-summary-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
}
.answer {
  margin-bottom: 17px;
}
.answer dt {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
}
.answer dd {
  margin: 0;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer-note {
  color: var(--muted);
  font-size: 14px !important;
  margin-top: 5px !important;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 16px;
}
.status-message {
  color: var(--blue);
  font-size: 14px;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding: 16px 0 24px;
  color: var(--muted);
  font-size: 12px;
}
#print-copy {
  display: none;
}
@media (max-width: 760px) {
  .shell {
    padding: 64px 16px 0;
  }
  .header {
    flex-wrap: wrap;
    gap: 13px;
    padding-top: 20px;
  }
  .logo {
    width: 100px;
    height: 100px;
  }
  .header-copy {
    flex-basis: calc(100% - 113px);
  }
  .header > .text-button {
    margin-left: auto;
  }
  .institution {
    font-size: 16px;
  }
  h1 {
    font-size: 23px;
  }
  h2 {
    font-size: 21px;
  }
  .layout {
    display: block;
  }
  aside {
    display: none;
  }
  .mobile-progress {
    display: block;
    margin-bottom: 22px;
  }
  .progress-caption {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
  }
  progress {
    width: 100%;
    height: 6px;
    accent-color: var(--blue);
  }
  .fields-grid,
  .choice-list {
    grid-template-columns: 1fr;
  }
  .question,
  .decision {
    padding: 16px 14px;
    margin-bottom: 24px;
  }
  .question-title {
    font-size: 17px;
  }
  .round-count {
    display: none;
  }
  .decision .button,
  .review-actions .button {
    width: 100%;
    margin-right: 0;
  }
  .job-summary-heading {
    display: block;
  }
}
@media print {
  body > .shell {
    display: none;
  }
  #print-copy {
    display: block;
    font:
      11pt/1.5 Arial,
      sans-serif;
  }
  #print-copy .answer {
    break-inside: avoid;
  }
}

/* A small language control stays on the right even when the page is scrolled. */
.language-switch {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 20;
  display: flex;
  padding: 3px;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: -2px 3px 8px rgba(36, 49, 60, 0.1);
}
.language-switch button {
  border: 0;
  background: transparent;
  color: var(--blue);
  border-radius: 3px;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 14px;
}
.language-switch button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}
@media print {
  .language-switch {
    display: none;
  }
}

/* Emphasize finishing and make document selection easy to find. */
.text-button.finish-here {
  color: var(--error);
  font-weight: 650;
}
.file-importance {
  color: var(--blue);
  font-size: 14px;
  margin: 8px 0 13px;
}
.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 17px 20px;
  border: 2px dashed var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}
.file-picker:hover {
  background: #edf3f8;
}
.file-picker:focus-within {
  outline: 3px solid #4f7cac;
  outline-offset: 3px;
}
.file-picker-icon {
  font-size: 30px;
  line-height: 1;
}
.file-picker strong {
  display: block;
  font-size: 16px;
}
.file-picker small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}
.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
@media (max-width: 760px) {
  .project {
    font-size: 25px;
  }
}
