/* Velunora V3.8 — respondent experience. Loaded only by participant pages.
   Editorial rhythm over nested cards; no changes to research/data logic. */
body.v38-participant {
  --r-ink:#27344f; --r-mid:#5a6981; --r-muted:#8995a7;
  --r-line:#e9e8ed; --r-accent:#666fa7; --r-soft:#f4f3f8;
  --r-paper:#faf9f7; --r-panel:#fff; --r-ease:cubic-bezier(.22,1,.36,1);
  background:var(--r-paper); color:var(--r-ink);
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
.v38-participant .shell {max-width:900px;padding:28px 38px 70px}
.v38-fill-page .shell {max-width:855px}
.v38-participant .top.v38-header {margin:0 0 48px;min-height:62px;padding-bottom:17px;border-bottom:1px solid var(--r-line)}
.v38-participant .brand-area{gap:10px}
.v38-participant .brand-symbol {width:47px;height:47px}
.v38-participant .brand-name {font-size:27px;color:#304477;letter-spacing:-.035em}
.v38-participant .brand-caption {letter-spacing:.12em;font-size:9px;color:#8793a9}
.v38-header-note {font-size:10px;letter-spacing:.16em;font-weight:700;color:#929db0;text-align:right}
.v38-participant .chip {background:transparent;color:#727e9b;border:1px solid #e7e7ed;border-radius:999px;font-size:11px;letter-spacing:.04em;padding:6px 11px}
.v38-participant .top-tools {gap:16px}
.v38-participant .back-link {font-size:12px;color:#707b97}
.v38-participant .hero.v38-hero {overflow:visible;box-shadow:none;border:0;border-radius:0;background:transparent;padding:16px 0 42px;margin:0}
.v38-participant .hero.v38-hero::after {display:none}
.v38-participant .hero.v38-hero h1 {font-family:ui-serif,"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",serif;font-size:clamp(30px,4vw,44px);font-weight:500;letter-spacing:.035em;color:#2b3852;line-height:1.48;margin:5px 0 13px}
.v38-participant .hero.v38-hero p:not(.v38-eyebrow){color:#72809a;line-height:2;font-size:14px;max-width:680px}
.v38-participant .hero.v38-subhero{padding:5px 0 30px}
.v38-participant .hero.v38-subhero h1{font-size:clamp(28px,3.45vw,38px)}
.v38-eyebrow {font-family:ui-sans-serif,system-ui,sans-serif;font-size:10px!important;letter-spacing:.22em!important;color:#8985b9!important;font-weight:750!important;text-transform:uppercase;margin:0 0 10px!important;line-height:1.5!important}
.v38-section {padding-top:24px;border-top:1px solid var(--r-line)}
.v38-section-heading {display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.v38-section-heading h2 {font-family:ui-serif,"Songti SC","STSong",serif;font-size:27px;font-weight:500;letter-spacing:.02em;color:#29364e;margin:0}
.v38-overline {color:#9ba4b3;font-size:12px}
.v38-participant .footer.v38-footer {display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--r-line);padding-top:20px;margin-top:54px;font-size:12px;text-align:left}
.v38-participant .v38-footer a {color:#7179a5}
/* Landing: quiet continuous study list */
.v38-surveys {font-size:14px}
.v38-surveys .question{margin:0;padding:22px 4px 26px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:center;border-bottom:1px solid var(--r-line);transition:background-color .2s ease,padding .22s var(--r-ease)}
.v38-surveys .question:first-child{border-top:1px solid var(--r-line)}
.v38-surveys .question:hover{background:rgba(111,113,171,.035);padding-left:11px;padding-right:11px}
.v38-surveys .question h3 {grid-column:1;font-size:17px;font-weight:650;margin:0 0 4px;color:#36415b;line-height:1.45}
.v38-surveys .question p{grid-column:1;margin:0;color:#8691a4;font-size:13px;line-height:1.8}
.v38-surveys .question .button {grid-column:2;grid-row:1/3;white-space:nowrap}
.v38-participant .button {border-radius:9px;background:#676f9f;box-shadow:none;font-size:13px;font-weight:640;min-height:46px;padding:11px 19px;letter-spacing:.015em;transition:transform .2s var(--r-ease),background-color .18s ease,box-shadow .2s ease}
.v38-participant .button:hover:not(:disabled){background:#596391;transform:translateY(-2px);box-shadow:0 8px 20px rgba(63,70,118,.13)}
.v38-participant .button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 5px rgba(63,70,118,.08)}
.v38-participant .button.secondary{background:#f1f0f4;color:#4e597e;box-shadow:none}
.v38-participant .button.secondary:hover:not(:disabled){background:#e8e8f1;color:#38466f;box-shadow:none}
.v38-participant .button:focus-visible {outline:3px solid #c6c5ed;outline-offset:3px}
.v38-participant .button:disabled {opacity:.5;cursor:not-allowed}
/* Consent: a readable research document, not a boxed widget */
.v38-consent .v38-consent-copy.info{background:none;border:0;border-left:2px solid #c2bfdc;border-radius:0;padding:0 0 0 22px;color:#46526a;font-size:15px;line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere}
.v38-fineprint {font-size:12px;color:#939bad;line-height:1.95;margin:24px 0 28px}
.v38-consent-action{padding:20px 0 6px;border-top:1px solid var(--r-line);display:flex;flex-direction:column;align-items:start;gap:19px}
.v38-participant .choice.v38-consent-check{background:transparent;border:0;padding:0;min-height:44px;display:flex;gap:12px;align-items:center;font-size:14px;font-weight:550;color:#42506b}
.v38-participant .v38-consent-check:hover{background:transparent}
.v38-consent-check input {width:19px;height:19px;flex:none;accent-color:#676f9f}
.v38-consent #start {min-width:188px}
/* Form scaffold and progress */
.v38-completion{position:sticky;top:0;z-index:15;display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center;padding:13px 0 15px;background:rgba(250,249,247,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--r-line)}
.v38-completion-title {font-size:12px;font-weight:600;color:#79849a}
.v38-completion-count {font-size:12px;color:#657192;font-variant-numeric:tabular-nums}
.v38-completion-track{grid-column:1/-1;margin-top:10px;height:3px;background:#e9e9ef;border-radius:9px;overflow:hidden}
#v38ProgressFill{height:100%;width:0%;background:#8b91c5;border-radius:9px;transition:width 350ms var(--r-ease)}
.v38-participant .card{box-shadow:none;border:0;border-radius:0;background:transparent}
.v38-identity-section.card {padding:27px 0 18px;margin-top:7px;border-bottom:1px solid var(--r-line)}
.v38-identity-section:has(#autoControls:not(.hidden)) {padding:14px 0 5px}
.v38-identity-section h2,.v38-submit-section h2{font-family:ui-serif,"Songti SC",serif;font-size:24px;font-weight:500;color:#35415d;margin:0 0 8px}
.v38-participant .muted{font-size:13px;color:#8993a3;line-height:1.9}
.v38-participant .field>label{font-size:13px;color:#64718c;font-weight:600}
.v38-participant .input{border:1px solid #e2e2e9;border-radius:9px;min-height:46px;box-shadow:none;background:#fff}
.v38-participant .input:focus{border-color:#939bc3;box-shadow:0 0 0 3px rgba(136,141,188,.13)}
.v38-visit-switch .choice {background:#fff!important;border:1px solid #eceaf0!important;border-radius:9px!important;padding:12px 16px!important}
.v38-visit-switch .choice:has(input:checked){border-color:#adb2d2!important;background:#f6f5fc!important}
.v38-visit-switch input{accent-color:#737bae}
#questionStage{scroll-margin-top:95px}
#studyWave.info{background:#f5f4f8;border:0;border-left:2px solid #b5b1d2;padding:13px 16px;margin:22px 0 0;color:#67728a;font-size:13px}
/* Questions: line, spacing and typography as primary separation */
.v38-participant #questions{counter-reset:v38-block}
.v38-participant #questions > .card{padding:29px 0 30px;margin:0;border-bottom:1px solid var(--r-line);background:transparent;position:relative}
.v38-participant #questions > .card:first-child{padding-top:30px}
.v38-participant #questions > .card > h2{font-family:ui-serif,"Songti SC","STSong",serif;font-size:24px;font-weight:500;color:#364159;margin:2px 0 12px;line-height:1.55}
.v38-participant #questions > .card > p.muted{margin:0 0 18px;font-size:13px;color:#8993a8}
.v38-participant .question{border:0;border-top:1px solid var(--r-line);padding:25px 2px 27px;margin:0}
.v38-participant .question:last-child{padding-bottom:12px}
.v38-participant .qtext{display:block;font-size:16px;line-height:1.85;color:#3d4964;font-weight:570;letter-spacing:.007em;margin-bottom:14px}
.v38-participant .required{color:#bb7c88}
.v38-participant .options{display:grid;gap:9px;margin-top:13px}
.v38-participant .choice{font-size:14px;font-weight:480;box-shadow:none;background:#fff;border:1px solid #ebeaf0;border-radius:9px;padding:13px 15px;min-height:49px;color:#5a6780;transition:border-color .17s ease,background-color .17s ease,transform .18s var(--r-ease)}
.v38-participant .choice:hover{background:#f9f8fc;border-color:#cecce2}
.v38-participant .choice:has(input:checked){background:#f1f0fa;border-color:#a7a8d0;color:#404a76}
.v38-participant .choice input{accent-color:#7178b0;width:16px;height:16px;flex:none;cursor:pointer}
.v38-participant .options.v38-inline-options{display:grid;grid-template-columns:repeat(var(--v38-opt-count),minmax(0,1fr));gap:8px}
.v38-participant .v38-inline-options .choice{padding:12px 6px;display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:center;font-size:13px;min-height:75px;line-height:1.3}
.v38-participant .v38-inline-options input {width:18px;height:18px}
/* Matrix option semantics stay readable even after header scrolls away */
.v38-participant .matrix {overflow:visible;border:0;border-top:1px solid var(--r-line);border-radius:0;margin-top:20px}
.v38-participant .matrix-head{position:sticky;top:61px;z-index:3;background:#f5f4f7;border-bottom:1px solid #eae8ef;color:#6b7893;font-size:12px;font-weight:620}
.v38-participant .matrix-row {border-bottom:1px solid var(--r-line);border-top:0;transition:background-color .18s ease}
.v38-participant .matrix-row:nth-child(odd){background:transparent}
.v38-participant .matrix-row:hover{background:#f8f7fb}
.v38-participant .matrix-question {padding:19px 14px 19px 2px;line-height:1.8;color:#49566c;font-size:14px}
.v38-participant .matrix-option{display:flex;flex-direction:column;gap:6px;position:relative;cursor:pointer;min-height:77px;padding:13px 3px;border-radius:0}
.v38-participant .matrix-option input{width:18px;height:18px;accent-color:#777eaf}
.v38-participant .matrix-option .choice-label{display:block;font-size:10px;line-height:1.4;color:#929bb0;text-align:center}
.v38-participant .matrix-option:has(input:checked){background:#eeedf7}
.v38-participant .matrix-option:has(input:checked) .choice-label{color:#535d91;font-weight:700}
/* Sliders: integer only, actual selection still requires input event */
.v38-participant .slider-control {margin:18px 0 8px;padding:20px 10px 10px;background:#f5f4f8;border-radius:12px}
.v38-participant .slider-value {font-size:37px;color:#535e95;font-weight:550;letter-spacing:-.045em}
.v38-participant .v36-range{accent-color:#7c84bb;min-height:38px;cursor:pointer}
.v38-participant .slider-endpoints{font-size:12px;color:#8993a8}
/* Scenario material: deliberate reading space */
.v38-participant .v36-scene{background:transparent;padding:32px 0 45px}
.v38-participant .v36-scene-copy{color:#526078;font-size:16px;line-height:2.15;max-width:64ch}
.v38-participant .v36-scene-image{border-radius:7px;max-height:390px;object-fit:cover}
/* Nav + submission */
.v38-participant .v36-pager{padding:21px 0;margin:0;background:transparent;border-radius:0;border-bottom:1px solid var(--r-line)}
.v38-participant .v36-progress{color:#7d86a2;font-size:12px;letter-spacing:.08em}
.v38-participant .v36-progress-track{background:#e9e8ef;height:3px}
.v38-participant #pageProgressBar{background:#9fa2c8}
.v38-participant .v36-pager .actions {display:flex;justify-content:space-between;gap:12px}
.v38-participant .v38-submit-section.card{padding:35px 0 0;margin-top:4px}
.v38-submit-section #captcha{margin-top:16px}
.v38-participant .copyright-notice{background:#faf7ee;color:#7d7151;border-left:2px solid #ddcfa7;border-radius:0;padding:12px}
/* Results: an understated personal record, not a dashboard */
.v38-complete-mark{display:grid;place-items:center;width:35px;height:35px;border:1px solid #a9bcae;color:#6a9584;border-radius:50%;font-size:17px;margin:2px 0 17px}
.v38-result-content #results .score{padding:20px 0 24px;margin:0;background:none;border-radius:0;border-bottom:1px solid var(--r-line)}
.v38-result-content #results .scoreline strong{font-size:15px;font-weight:610;color:#43516a}
.v38-result-content #results .scoreline .big{font-size:29px;font-weight:580;color:#56659a;font-variant-numeric:tabular-nums}
.v38-result-content #results .bar{height:4px;border-radius:8px;background:#eeedf4;margin-top:12px}
.v38-result-content #results .bar>div{background:#9197c6;border-radius:8px}
.v38-result-content #results .score .muted{margin:10px 0 0}
.v38-result-content #codeBox.info,.v38-result-content #repeatNotice.info{border:0;border-left:2px solid #b7b6d7;background:#f6f5fa;padding:13px 16px;margin:12px 0;color:#626e88}
.v38-result-content #returnPanel.card{border-top:1px solid var(--r-line);padding:22px 0;margin:20px 0}
.v38-result-content #note.info{border:0;border-left:2px solid #cecede;background:transparent;color:#8690a3;padding:8px 13px;font-size:13px}
.v38-result-content #time{margin:21px 0 12px}
.v38-result-actions{margin-top:23px}
.v38-result-actions .button{min-width:125px}
/* Accessibility, readability and mobile layouts */
.v38-participant :focus-visible{outline:3px solid #aaaedb;outline-offset:3px}
.v38-participant :where(.error){line-height:1.8}
@media(max-width:680px){
  .v38-participant .shell{padding:18px 20px 54px}
  .v38-participant .top.v38-header{margin-bottom:26px}
  .v38-participant .hero.v38-hero{padding:8px 0 24px}
  .v38-participant .hero.v38-hero h1{font-size:clamp(27px,7vw,36px)}
  .v38-header-note{display:none}
  .v38-overline{display:none}
  .v38-surveys .question{grid-template-columns:1fr;row-gap:12px}
  .v38-surveys .question .button{grid-column:1;grid-row:auto;justify-self:start}
  .v38-participant .v38-footer{flex-direction:column;align-items:start;gap:7px}
  .v38-participant .meta{grid-template-columns:1fr;gap:2px}
  .v38-participant #questions > .card{padding:24px 0}
  .v38-participant .v38-inline-options .choice{font-size:12px;min-height:71px;padding:10px 3px}
  .v38-participant .matrix{overflow-x:auto}
  .v38-participant .matrix-head{display:none}
  .v38-participant .matrix-row{display:grid;grid-template-columns:repeat(var(--choice-count),minmax(0,1fr));border-bottom:1px solid var(--r-line);margin:0;border-radius:0}
  .v38-participant .matrix-question{grid-column:1/-1;background:transparent;padding:18px 2px 8px}
  .v38-participant .matrix-option{border-right:0;min-height:67px;padding:9px 2px}
  .v38-participant .matrix-option .choice-label{font-size:11px}
  .v38-participant .v36-pager .actions{justify-content:space-between}
}
@media(max-width:390px){
  .v38-participant .shell{padding-left:14px;padding-right:14px}
  .v38-participant .brand-name{font-size:24px}
  .v38-participant .v38-inline-options .choice{font-size:11px;gap:6px}
  .v38-participant .v38-inline-options .choice input{width:17px;height:17px}
  .v38-participant .button{padding-left:13px;padding-right:13px}
}
@media(prefers-reduced-motion:reduce){
  .v38-participant *, .v38-participant *::before, .v38-participant *::after {scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
/* Override the older V3.5 landing-page card hover at equal specificity. */
.home-page #surveys.v38-surveys .question{border-radius:0;margin:0;padding:22px 4px 26px;box-shadow:none;transform:none}
.home-page #surveys.v38-surveys .question:last-child{border-bottom:1px solid var(--r-line)}
.home-page #surveys.v38-surveys .question:hover{padding-left:11px;padding-right:11px;box-shadow:none;transform:none}
@media(max-width:680px){.home-page #surveys.v38-surveys .question{padding:18px 2px 20px}}
