/* Participant-facing stylesheet.
   One light theme for every participant: the interface must look the same
   across devices and conditions, so OS dark mode is deliberately not applied.
   No web fonts (no third-party requests): system font stack only. */

:root {
  color-scheme: light;
  --bg: #f5f4f1;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5a6066;
  --border: #d9d6d0;
  --border-strong: #b9b5ad;
  --accent: #2e4756;          /* muted slate: buttons, selection, focus */
  --accent-soft: #eef2f4;
  --error: #9b2c2c;
  --error-soft: #fbf1f1;
  --notice-bg: #f7f8f6;        /* disclosure box (matches LimeSurvey values) */
  --notice-border: #dee5e0;
  --notice-text: #26332e;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- layout */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header__inner,
.site-footer__inner,
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}
.site-header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.page { padding-top: 28px; padding-bottom: 48px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  animation: fade-in 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.site-footer { color: var(--muted); font-size: 13px; }
.site-footer__inner { padding-top: 8px; padding-bottom: 32px; }
.site-footer a { color: inherit; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding: 16px 12px 40px; }
  .card { padding: 20px 16px 18px; }
}

/* ------------------------------------------------------------- typography */
h1 {
  font-size: 1.45rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.page-description { margin: 0 0 20px; color: var(--text); white-space: pre-line; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Unfilled placeholders are visibly marked so they cannot slip into launch. */
.placeholder {
  display: inline;
  background: #fff8e1;
  outline: 1px dashed #c9a227;
  color: #6b5500;
  padding: 0 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- progress */
.progress { margin: 0 0 22px; }
.progress__track {
  height: 4px;
  background: var(--accent-soft);
  border-radius: 2px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease-out;
}
.progress__label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* -------------------------------------------------------------- questions */
.question {
  border: 0;
  margin: 0 0 26px;
  padding: 0;
  min-width: 0;
}
.question__text {
  font-weight: 600;
  margin: 0 0 10px;
  padding: 0;
  font-size: 1rem;
  line-height: 1.45;
}
.question__required { color: var(--muted); font-weight: 400; margin-left: 2px; }
.question__help { color: var(--muted); font-size: 0.93rem; margin: -4px 0 10px; }

.options { display: grid; gap: 8px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;                 /* touch target */
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 120ms, background-color 120ms;
}
.option:hover { border-color: var(--border-strong); }
.option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

textarea.text-answer {
  width: 100%;
  min-height: 130px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  resize: vertical;
}
textarea.text-answer:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.question--error .question__text { color: var(--error); }
.question__error {
  color: var(--error);
  background: var(--error-soft);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.93rem;
  margin: 0 0 10px;
}

/* ------------------------------------------------------------- navigation */
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.nav__hint { margin-right: auto; font-size: 0.93rem; color: var(--muted); }

.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 11px 26px;
  min-height: 46px;
  border-radius: 6px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[disabled] {
  background: #e3e1dc;
  border-color: #e3e1dc;
  color: #7a7f84;
  cursor: not-allowed;
  filter: none;
}
@media (max-width: 520px) {
  .nav { flex-direction: column-reverse; align-items: stretch; }
  .nav__hint { margin: 0; text-align: center; }
  .btn { width: 100%; }
}

/* ---------------------------------------------------- disclosure + video */
/* Disclosure box: same position and style in every condition. */
.disclosure {
  text-align: center;
  padding: 12px 16px;
  margin: 0 0 14px;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 6px;
  color: var(--notice-text);
  font-size: 15px;
}
.disclosure__heading { font-weight: 700; display: block; }
.disclosure__label { margin: 6px 0 0; }

.player { margin: 0 0 18px; }
.player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.player__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
}
.player__overlay[hidden] { display: none; }
.player__overlay-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player__overlay:focus-visible .player__overlay-icon { outline: 3px solid #fff; outline-offset: 4px; }
.player__status {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  pointer-events: none;
}
.player__status:empty { display: none; }

.player__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.player__btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.player__btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.player__progress {
  flex: 1;
  height: 6px;
  background: #e6e4df;
  border-radius: 3px;
  overflow: hidden;
}
.player__progress-bar { height: 100%; width: 0; background: var(--accent); }
.player__time {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--muted);
  min-width: 88px;
  text-align: right;
}
.icon { width: 20px; height: 20px; fill: currentColor; }
.player__overlay-icon .icon { width: 30px; height: 30px; fill: #1d2125; margin-left: 4px; }

/* -------------------------------------------------------- utility pages */
.center-note { text-align: center; padding: 12px 0 4px; }
.code-box {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ additions */
.section-heading { font-size: 1.05rem; margin: 22px 0 8px; }
.question__text--block { display: block; }
.test-banner {
  background: #7a4b00; color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 6px 12px;
}
.contact-note {
  margin: 4px 0 18px;
  padding: 10px 14px;
  background: var(--bg);
  border-left: 3px solid var(--border-strong);
  border-radius: 4px;
  font-size: 0.95rem;
}
.contact-note a, .site-footer a { color: var(--accent); overflow-wrap: anywhere; }
