/* Prologue-only layout, loaded after the shared app theme. */
body[data-surface=prologue]{--desk-width:1200px;--desk-gutter:clamp(18px,3.5vw,40px)}
body[data-surface=prologue] #app,body[data-surface=prologue] .case,body[data-surface=prologue] .sidebar{min-width:0}
body[data-surface=prologue]>header{width:min(var(--desk-width),calc(100% - 2 * var(--desk-gutter)))!important;padding:18px 0!important;gap:24px!important}
body[data-surface=prologue]>header>.app-brand img{width:190px!important}
body[data-surface=prologue]>header .headtools button{min-height:40px!important;padding:8px 12px!important;font-size:13px!important}
body[data-surface=prologue]>header .headtools .save-progress-button{min-height:42px!important}
body[data-surface=prologue] .workspace{width:min(var(--desk-width),calc(100% - 2 * var(--desk-gutter)))!important;max-width:var(--desk-width)!important;margin:0 auto!important;padding:30px 0 48px!important;display:grid;grid-template-columns:205px minmax(0,1fr)!important;gap:36px!important}
body[data-surface=prologue] .workspace .sidebar{padding-right:24px;border-right:1px solid #c9baa2;top:20px}
body[data-surface=prologue] .sidebar h1{font:normal 31px/1.15 Georgia,serif!important;letter-spacing:-.5px!important;margin:8px 0 24px!important}
body[data-surface=prologue] .sidebar .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:8px}
body[data-surface=prologue] .sidebar .steps{margin:0 0 18px;gap:6px}
body[data-surface=prologue] .steps button{padding:12px 10px!important;border:1px solid transparent!important;border-radius:3px;font-size:13px!important;min-height:54px;align-items:center;gap:10px;line-height:1.45!important}
body[data-surface=prologue] .steps button[aria-current=step]{background:#fffaf0;border-color:#c9baa2!important;box-shadow:none}
body[data-surface=prologue] .steps button:disabled{opacity:.5}
body[data-surface=prologue] .steps span{font:13px/1.4 'Courier New',monospace!important;min-width:20px}
body[data-surface=prologue] .steps .step-short{display:none}
body[data-surface=prologue] .steps .step-title{font:inherit!important;min-width:0}
body[data-surface=prologue] .sidebar .case-tools{border-top:1px solid #c9baa2;padding-top:10px;margin:12px 0 0}
body[data-surface=prologue] .case-tools>summary{font-size:13px!important;min-height:44px;padding:10px 0}
body[data-surface=prologue] .case-tools textarea{margin:10px 0;min-height:150px}
body[data-surface=prologue] .case-tools #opening{font-size:12px!important}
body[data-surface=prologue] .case>.eyebrow{font-size:11px;letter-spacing:1.8px;margin:0 0 10px}
body[data-surface=prologue] .case>h2{font:normal clamp(32px,3.5vw,46px)/1.15 Georgia,serif!important;letter-spacing:-.7px;margin:0 0 14px!important;padding:0!important;border:0}
body[data-surface=prologue] .case>.goal{font:17px/1.65 Georgia,serif;max-width:68ch;margin:0 0 22px;color:#625547}
body[data-surface=prologue] .case .answerbox{background:#f6f0e3!important;border:1px solid #d4c5ab!important;border-radius:4px!important;padding:22px!important;margin:22px 0 24px!important}
body[data-surface=prologue] .answerbox .timeline-heading{font:normal 22px/1.3 Georgia,serif!important;margin-bottom:10px}
body[data-surface=prologue] .answerbox .clock-help{font-size:13px!important;line-height:1.6;margin-bottom:18px}
body[data-surface=prologue] .answerbox .recorded-facts{font-size:13px;line-height:1.65;margin:0 0 12px}
body[data-surface=prologue] .timeline-inputs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
body[data-surface=prologue] .printer-inputs{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important}
body[data-surface=prologue] .audit-answer .printer-inputs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-surface=prologue] .answerbox input{display:block;width:100%;min-width:0;min-height:48px;background:#fffaf0!important}
body[data-surface=prologue] .answerbox input.time-correct{background:#edf3e6!important}
body[data-surface=prologue] .answerbox label{font-size:13px!important;margin-bottom:8px}
body[data-surface=prologue] .answerbox .primary{min-height:46px!important;font-size:14px!important;justify-content:center;gap:10px;padding:12px 18px!important;max-width:100%;white-space:normal}
body[data-surface=prologue] .answerbox #next{margin-top:16px;min-height:50px!important}
body[data-surface=prologue] .time-status{min-height:0;font-size:12px!important;line-height:1.5}
body[data-surface=prologue] .time-status:empty{display:none}
body[data-surface=prologue] #feedback:empty{display:none}
body[data-surface=prologue] .hintline{gap:6px!important;margin-top:12px;justify-content:space-between}
body[data-surface=prologue] .hintline .quiet{font-size:12px!important;padding:8px 0!important;width:auto!important;flex:0 1 auto!important;min-height:44px}
body[data-surface=prologue] .inputrow{flex-wrap:nowrap;align-items:stretch}
body[data-surface=prologue] .inputrow input{flex:1 1 160px}
body[data-surface=prologue] .evidence-phone-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0!important;margin:0 0 16px;border:0;background:none}
body[data-surface=prologue] .evidence-phone-strip p{display:none}
body[data-surface=prologue] .evidence-phone-strip .eyebrow{font-size:10px;letter-spacing:1.2px}
body[data-surface=prologue] .evidence-phone-strip .phone-evidence-button{width:auto;min-height:40px;display:inline-flex;align-items:center;gap:8px;margin:0;padding:8px 10px!important;font-size:12px!important;background:none;border:1px solid #c9baa2;border-radius:3px}
body[data-surface=prologue] .case .documents{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:start}
body[data-surface=prologue] .workspace .document{min-width:0;max-width:none!important;width:100%;padding:20px!important;border:1px solid #d7c7aa!important;border-radius:4px!important;box-shadow:0 3px 10px #392a1708!important;grid-column:auto!important;justify-self:stretch}
body[data-surface=prologue] .case .documents:not(.route-documents):not(.audit-documents)>.document:last-child:nth-child(odd){grid-column:1/-1!important}
body[data-surface=prologue] .document .dochead{margin:0 0 6px;justify-content:flex-end}
body[data-surface=prologue] .document .dochead .quiet{font-size:11px!important;min-height:36px!important;padding:6px 0!important}
body[data-surface=prologue] .document .doctitle{font:normal 22px/1.3 Georgia,serif!important;margin:0 0 16px;padding-bottom:12px;border-color:#d7c7aa}
body[data-surface=prologue] .document .evidence-extract{font-size:16px;line-height:1.65;overflow-x:auto}
body[data-surface=prologue] .original-evidence{margin-top:8px}
body[data-surface=prologue] .original-evidence>summary{font-size:12px!important;min-height:44px}
body[data-surface=prologue] .document .document-upload>img{max-height:520px}
body[data-surface=prologue] .document .updated-evidence>img{height:auto;max-height:none;object-fit:contain;background:transparent}
body[data-surface=prologue] .documents .evidence-photo{max-width:280px}
body[data-surface=prologue] .evidence-photo figcaption{font-size:14px;line-height:1.6}
body[data-surface=prologue] .document .small{font-size:12px!important;line-height:1.6;margin-top:12px}
body[data-surface=prologue] .documents.route-documents{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important}
body[data-surface=prologue] .documents.route-documents>.document:first-child{grid-column:1!important;grid-row:1/3}
body[data-surface=prologue] .documents.route-documents>.document:nth-child(2),body[data-surface=prologue] .documents.route-documents>.document:nth-child(3){grid-column:2!important}
body[data-surface=prologue] .ending{width:min(820px,calc(100% - 2 * var(--desk-gutter)))!important;margin:0 auto!important;padding:36px 0!important}
body[data-surface=prologue] .ending .fragment{transform:none;padding:24px!important;margin:24px 0;background:#fffaf0!important;border:1px solid #d7c7aa!important;border-radius:4px}
body[data-surface=prologue] .ending .statement-fragment-photo{margin:0 auto 20px;max-width:520px}
body[data-surface=prologue] .statement-fragment-photo img{display:block;width:100%;height:auto}
body[data-surface=prologue] .ending .revelation{font-size:clamp(24px,3vw,34px)!important;line-height:1.5}
body[data-surface=prologue]>footer{width:min(var(--desk-width),calc(100% - 2 * var(--desk-gutter)))!important}
/* Align the invitation with the same page gutters as the investigation. */
body.prologue-landing>header{width:min(1160px,calc(100% - 2 * var(--desk-gutter)))!important;padding:20px 0!important;align-items:flex-start!important}
body.prologue-landing>header>.header-actions,body.prologue-landing>footer{display:none!important}
body.prologue-landing .intro{width:min(1160px,calc(100% - 2 * var(--desk-gutter)))!important;padding:24px 0 60px!important;gap:0 56px!important}
body.prologue-landing .introcopy{max-width:none}
body.prologue-landing .entry-evidence{grid-template-columns:minmax(0,1fr) minmax(0,.85fr)!important}
body.prologue-landing .entry-evidence .hero{object-position:center 62%!important;height:220px!important}
body.prologue-landing .entry-clue-input{display:grid;grid-template-columns:120px minmax(0,1fr)}
body.prologue-landing .entry-clue-input input{width:100%!important}
body.prologue-landing .intro .primary{min-width:0!important}
@media(max-width:1000px){
 body[data-surface=prologue] .workspace{grid-template-columns:170px minmax(0,1fr)!important;gap:24px!important}
 body[data-surface=prologue] .workspace .sidebar{padding-right:18px}
 body[data-surface=prologue] .sidebar h1{font-size:27px!important}
 body[data-surface=prologue] .printer-inputs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-surface=prologue] .printer-answer .printer-inputs>div:first-child{grid-column:1/-1}
 body[data-surface=prologue] .case .documents,body[data-surface=prologue] .documents.route-documents{grid-template-columns:minmax(0,1fr)!important}
 body[data-surface=prologue] .case .documents>.document{grid-column:1!important;grid-row:auto!important}
 body.prologue-landing .intro{gap:0 32px!important}
}
@media(max-width:850px){
 body[data-surface=prologue]>header{display:flex!important;flex-direction:row;align-items:center!important;flex-wrap:wrap!important;gap:12px!important;padding:16px 0!important}
 body[data-surface=prologue]>header>.app-brand img{width:150px!important}
 body[data-surface=prologue]>header>.header-actions{align-items:flex-start!important;width:100%;gap:8px!important}
 body[data-surface=prologue]>header .music-controls{justify-content:start!important;margin:0}
 body[data-surface=prologue]>header .headtools{justify-content:flex-start!important;gap:6px!important}
 body[data-surface=prologue]>header .headtools button{font-size:12px!important;padding:8px 10px!important;min-height:40px!important}
 body[data-surface=prologue] .workspace{display:block;padding:18px 0 36px!important}
 body[data-surface=prologue] .workspace .sidebar{position:static;border:0;padding:0 0 22px!important;margin:0 0 22px;border-bottom:1px solid #c9baa2}
 body[data-surface=prologue] .sidebar>.eyebrow{display:none}
 body[data-surface=prologue] .sidebar h1{font-size:25px!important;margin:0 0 14px!important}
 body[data-surface=prologue] .sidebar .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px;margin-bottom:10px}
 body[data-surface=prologue] .steps button{flex-direction:column;justify-content:center;gap:4px!important;padding:8px 3px!important;min-height:62px!important;text-align:center;border-color:#d7c7aa!important;background:#fffaf040}
 body[data-surface=prologue] .steps .step-title{display:none}
 body[data-surface=prologue] .steps .step-short{display:block;font:11px/1.4 Arial,sans-serif!important;min-width:0}
 body[data-surface=prologue] .sidebar .case-tools{border:0;margin:0;padding:0}
 body[data-surface=prologue] .case-tools>summary{min-height:36px;font-size:12px!important;padding:8px 0}
 body[data-surface=prologue] .case>h2{font-size:34px!important}
 body[data-surface=prologue] .case>.goal{font-size:16px;line-height:1.65}
 body[data-surface=prologue] .case .answerbox{padding:18px!important}
 body[data-surface=prologue] .workspace .document{padding:18px!important}
 body[data-surface=prologue] .documents .evidence-photo{max-width:300px}
 body.prologue-landing .intro{grid-template-columns:minmax(0,1fr)!important;max-width:580px!important;gap:24px!important;padding:12px 0 40px!important}
 body.prologue-landing .intro-heading h1.prologue-hook{font-size:clamp(33px,7vw,44px)!important}
 body.prologue-landing .entry-evidence .hero{height:170px!important}
 body.prologue-landing .introcopy>.lead{font-size:22px!important}
 body.prologue-landing .introcopy>p{font-size:15px;margin-bottom:20px!important}
}
@media(max-width:540px){
 body[data-surface=prologue] .timeline-inputs,body[data-surface=prologue] .printer-inputs,body[data-surface=prologue] .audit-answer .printer-inputs{grid-template-columns:minmax(0,1fr)!important}
 body[data-surface=prologue] .printer-answer .printer-inputs>div:first-child{grid-column:auto}
 body[data-surface=prologue] .case>h2{font-size:30px!important;line-height:1.2}
 body[data-surface=prologue] .answerbox form>.primary,body[data-surface=prologue] .answerbox .inputrow>.primary{width:100%}
 body[data-surface=prologue] .inputrow{flex-direction:column}
 body[data-surface=prologue] .inputrow input{flex:none}
 body[data-surface=prologue] .evidence-phone-strip{align-items:center;gap:8px}
 body[data-surface=prologue] .evidence-phone-strip .phone-evidence-button{font-size:11px!important;padding:8px!important}
 body[data-surface=prologue] .evidence-extract th,body[data-surface=prologue] .evidence-extract td{padding:8px 5px;font-size:13px}
 body[data-surface=prologue] .ending .fragment{padding:18px!important}
 body.prologue-landing>header{padding:16px 0!important}
 body.prologue-landing .entry-evidence{padding:16px!important}
 body.prologue-landing .entry-evidence figcaption{padding-left:14px!important}
 body.prologue-landing .entry-evidence figcaption span{font-size:9px;letter-spacing:.5px}
 body.prologue-landing .entry-evidence figcaption b{font-size:15px;overflow-wrap:normal}
 body.prologue-landing .entry-evidence figcaption p{font-size:14px}
 body.prologue-landing .entry-clue h2{font-size:25px!important}
 body.prologue-landing .entry-clue-input{grid-template-columns:100px minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){body[data-surface=prologue] .primary:hover{transform:none}}
