:root {
  font-family: Arial, sans-serif;
  --text-body: 1.5rem;
  --text-label: 1.375rem;
  --text-small: 1.25rem;
  --text-heading: 2rem;
  font-synthesis: none;
  color: #333;
  background: #f3f4f5;
  --green: #536944;
  --line: #dce1d8;
  --selection: #edf2e8;
  --selection-hover: #e4ecdd;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: var(--text-body); line-height: 1.6; }
p { margin: 0 0 1.35em; }
.shell { max-width: 1064px; margin: 56px auto; padding: 0 24px; }
.panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #00000008;
  overflow: hidden;
}
.panel-head { padding: 28px 40px; border-bottom: 1px solid var(--line); }
.panel-title { min-width: 0; }
.phase-label {
  margin: 0 0 4px;
  color: #606060;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: var(--text-heading); font-weight: 500; line-height: 1.4; margin: 0; }
h1 span {
  color: var(--green);
  padding: 0 3px;
  background: linear-gradient(to top, #fff68f 38%, transparent 38%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
h2 { font-size: inherit; color: var(--green); margin: 0 0 16px; }
.panel-body { padding: 36px 40px; }
.panel-body > :last-child { margin-bottom: 0; }
.lead { font-weight: 600; }
.counter { color: var(--green); font-size: var(--text-small); margin-bottom: 20px; }
.muted { color: #606060; }
.small { font-size: var(--text-small); }
fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
legend {
  width: 100%;
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 28px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #b8c2ae;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 10px;
  cursor: pointer;
}
.choice:hover, .choice:focus-within { background: #f0f2ee; border-color: var(--green); }
.choice:has(input:checked) {
  background: var(--selection);
  border-color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}
.choice:has(input:checked):hover { background: var(--selection-hover); }
input[type=radio], input[type=checkbox] {
  accent-color: var(--green);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 6px 0 0;
}
input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #899580;
  border-radius: 50%;
  background: #fff;
}
input[type=radio]:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}
.scale-number { display: inline-block; min-width: 32px; color: #606060; }
.choice:has(input:checked) .scale-number { color: var(--green); }
.consent { display: flex; align-items: flex-start; gap: 16px; }
.panel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 40px 30px;
  border-top: 1px solid var(--line);
}
.panel-actions > button:only-child { margin-left: auto; }
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 12px 24px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: var(--text-label);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--green); color: #fff; }
button.secondary { border-color: transparent; font-weight: 400; }
button.secondary:hover { color: var(--green); background: #f0f2ee; }
:focus-visible { outline: 3px solid #53694480; outline-offset: 4px; }
.error { border-left: 4px solid #a13d32; padding: 12px 20px; color: #80342c; margin-bottom: 28px; }
.demo-banner { text-align: center; font-size: var(--text-small); color: #555; padding: 12px 20px 0; }
.demo-banner + .shell { margin-top: 28px; }
textarea {
  width: 100%;
  resize: vertical;
  padding: 18px;
  border: 1px solid #b8c2ae;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font: inherit;
  line-height: 1.6;
  margin-bottom: 12px;
}
.questionnaire-answer { padding: 12px 20px; margin-bottom: 0; }
.prolific-id {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid #b8c2ae;
  border-radius: 8px;
  color: inherit;
  font: inherit;
}
.questionnaire-answer:hover, .questionnaire-answer:focus {
  border-color: var(--green);
  background: #f0f2ee;
}
.session-actions { margin: 20px 0 0; text-align: right; font-size: var(--text-small); }
.session-actions a { color: #606060; text-underline-offset: 4px; }
.session-actions a:hover { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -200px; background: #fff; padding: 12px; }
.skip:focus { top: 0; z-index: 5; }
@media (forced-colors: active) {
  input[type=radio] { appearance: auto; -webkit-appearance: auto; box-shadow: none; }
  .choice:has(input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
}

@media (max-width: 600px) {
  :root { --text-body: 1.375rem; --text-heading: 1.75rem; }
  .shell { padding: 0 12px; margin: 24px auto; }
  .panel { border-radius: 12px; }
  .panel-head { padding: 24px; }
  .panel-body { padding: 28px 24px; }
  .panel-actions { padding: 20px 24px 24px; }
  .choice { padding: 12px; gap: 12px; }
  .scale-number { min-width: 24px; }
  button, .button { font-size: var(--text-label); padding: 12px 16px; gap: 12px; }
}

/* Entry-page illustration and logos from the co-design study. */
.registration-shell { max-width: 1240px; }
.registration-card {
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 24px #00000010;
}
.registration-card .panel { flex: 1.2; min-width: 0; border-radius: 0; box-shadow: none; }
.registration-card .panel-head { border-bottom: 0; padding-bottom: 0; }
.registration-card label { font-weight: 600; }
.registration-card .panel-actions { border-top: 0; padding-top: 0; }
.registration-card .panel-actions button { width: 100%; }
.prolific-id:read-only { background: #f3f5f0; color: #555; }
.registration-art {
  flex: 1;
  min-width: 0;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  background: url("img/decide.svg") center center / cover no-repeat;
}
.registration-logos {
  position: absolute;
  top: 30px;
  left: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.registration-logos img { height: 65px; width: auto; max-width: 45%; object-fit: contain; }
@media (max-width: 800px) {
  .registration-card { flex-direction: column; }
  .registration-art { flex: auto; min-height: 300px; }
  .registration-logos { top: 20px; }
  .registration-logos img { height: 45px; }
}

/* Keep the question, all choices and navigation together on laptop screens. */
.questionnaire-shell .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.questionnaire-shell .counter { margin: 0; flex-shrink: 0; }
.questionnaire-shell fieldset { margin-top: 0; }
.questionnaire-shell .choice:last-child { margin-bottom: 0; }
@media (min-width: 700px) {
  .questionnaire-shell { margin: 28px auto; }
  .questionnaire-shell .panel-head { padding: 20px 28px; }
  .questionnaire-shell h1 { font-size: 1.75rem; }
  .questionnaire-shell .panel-body { padding: 24px 28px; }
  .questionnaire-shell legend { font-size: 1.625rem; line-height: 1.35; margin-bottom: 20px; }
  .questionnaire-shell .choice {
    min-height: 48px;
    padding: 8px 16px;
    margin-bottom: 8px;
    font-size: var(--text-label);
    line-height: 1.35;
  }
  .questionnaire-shell .choice input { margin-top: 3px; }
  .questionnaire-shell .panel-actions { padding: 16px 28px; }
  .questionnaire-shell button { min-height: 48px; padding: 8px 20px; line-height: 1.25; }
  .questionnaire-shell .session-actions { margin-top: 10px; line-height: 1.35; }
  .questionnaire-shell .questionnaire-answer { min-height: 140px; height: 24dvh; }
}
@media (min-width: 700px) and (max-height: 760px) {
  .questionnaire-shell { margin: 16px auto; }
  .questionnaire-shell .panel-head { padding: 12px 28px; }
  .questionnaire-shell .panel-body { padding: 14px 28px; }
  .questionnaire-shell legend { font-size: 1.375rem; margin-bottom: 12px; }
  .questionnaire-shell .choice { margin-bottom: 6px; }
  .questionnaire-shell .panel-actions { padding: 10px 28px; }
  .questionnaire-shell .session-actions { margin-top: 8px; }
}
@media (min-width: 700px) and (max-height: 700px) {
  .questionnaire-shell { margin: 8px auto; }
  .questionnaire-shell .panel-head { padding: 8px 28px; }
  .questionnaire-shell .panel-body { padding: 8px 28px; }
  .questionnaire-shell legend { margin-bottom: 12px; }
  .questionnaire-shell .choice { min-height: 44px; padding: 6px 16px; margin-bottom: 4px; }
  .questionnaire-shell .panel-actions { padding: 6px 28px; }
  .questionnaire-shell .session-actions { margin-top: 6px; }
}
@media (min-width: 700px) and (max-height: 650px) {
  .questionnaire-shell { margin: 4px auto; }
  .questionnaire-shell .panel-head { padding-block: 6px; }
  .questionnaire-shell .panel-body { padding-block: 6px; }
}

.explanation { margin: 12px 0; font-size: 20px; }
.explanation summary {
  padding: 12px 16px;
  background: #e9eaec;
  color: #3d4540;
  font-weight: 600;
  cursor: pointer;
}
.explanation[open] summary { background: #dfe3dd; }
.explanation-body { padding: 18px 16px 8px; }
.explanation-body > :last-child { margin-bottom: 0; }
.explanation-body a { color: var(--green); }
.guided-form fieldset { margin-top: 0; }
.question-faq { margin-top: 32px; }
.guided-form legend { font-size: 23px; }
.selection-hint { font-size: 18px; color: #555; margin-bottom: 20px; }
.form-choices { border: 1px solid var(--line); border-radius: 8px; }
.form-choices .choice:focus-within { outline: 2px solid var(--green); outline-offset: -2px; }
.guided-form .choice { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 18px 20px; }
.guided-form .choice:last-child { border-bottom: 0; }
.review-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.review-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.review-heading h2 { margin: 0 0 16px; }
.review-section ul { padding-left: 28px; }
.review-section li { margin-bottom: 12px; }
.review-section > :last-child { margin-bottom: 0; }
.form-review { margin-bottom: 32px; }
.edit-choice { border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 4px; min-height: 44px; font-size: 18px; font-weight: 400; }
.edit-choice:hover { color: var(--green); background: #eef0eb; }

.website-shell .panel { border-top: 5px solid var(--green); }
.website-shell .phase-label { color: var(--green); }
.website-shell .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.website-shell .counter { margin: 0; }
.website-shell .panel-actions button[value="next"] { margin-inline-start: auto; }
.website-shell .panel-actions button:disabled {
  color: #5e6859;
  border-color: #dce1d8;
  background: #f0f2ee;
  cursor: default;
}
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.decision-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  padding: 28px 16px;
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.decision-tile:hover { background: #f6f8f4; border-color: #839575; color: var(--green); }
.decision-title { font-size: 1.0625rem; }
.decision-answer { color: #606060; font-size: .9375rem; font-weight: 400; }
.decision-tile.has-answer { background: #e5eddd; border-color: #617650; }
.decision-tile.has-answer:hover { background: #dbe6d1; border-color: var(--green); }
.has-answer .decision-answer { color: #3f5134; }
.decision-check {
  position: absolute;
  inset-block-start: 11px;
  inset-inline-end: 11px;
  width: 15px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--green);
  transform: rotate(-45deg);
}
.decision-dialog {
  width: min(48rem, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  box-shadow: 0 12px 48px #0003;
}
.decision-dialog::backdrop { background: #19201866; }
html:has(.decision-dialog[open]) { overflow: hidden; }
.decision-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.decision-dialog-head h2 { margin: 0; font-size: var(--text-label); }
.decision-dialog-head .decision-dialog-close {
  flex: none;
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
}
.decision-dialog-error { margin: 16px 24px 0; }
.decision-dialog [aria-busy="true"], [data-decision-view="overview"] [aria-busy="true"] { cursor: progress; }
@media (max-width: 600px) {
  .guided-form .choice { padding: 12px; }
  .review-heading { flex-wrap: wrap; gap: 4px 16px; }
  .review-heading h2 { margin-bottom: 0; }
}
