/* Tour controls surround the real Elthos workspace, which is isolated in a frame. */
.research-story { width:min(1240px,calc(100% - 80px)); margin-top:78px; scroll-margin-top:110px; }
.story-heading-row { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; text-align:left; margin-bottom:24px; }
.story-heading-row .eyebrow { font-size:9px; margin-bottom:11px; letter-spacing:1.5px; }
.story-heading-row h2 { font-size:29px; font-weight:500; letter-spacing:-1px; line-height:1.25; }
.story-mobile-break { display:none; }
.story-play { display:inline-flex; align-items:center; gap:9px; border:1px solid #dcded6; border-radius:24px; padding:10px 15px; background:#ffffff80; min-height:40px; font-size:11px; white-space:nowrap; }
.story-play:hover { background:#fff; }
.story-play:disabled { opacity:.65; }
.story-play-icon { width:12px; text-align:center; }
.story-steps { display:grid; grid-template-columns:repeat(var(--story-steps,5),minmax(0,1fr)); list-style:none; padding:0; margin:0 0 18px; gap:8px; text-align:left; }
.story-steps button { display:flex; width:100%; min-height:77px; align-items:center; gap:12px; padding:15px 13px 16px; background:transparent; border:1px solid transparent; border-radius:9px; position:relative; overflow:hidden; text-align:left; transition:background .25s,border-color .25s; }
.story-steps button:hover { background:#f1f2ec; }
.story-steps button[aria-pressed=true] { background:#fff; border-color:#dedfd7; box-shadow:0 3px 7px #30352b06; }
.story-step-number { color:#92968a; font-size:10px; font-variant-numeric:tabular-nums; }
.story-steps strong { display:block; color:#64695c; font-size:12px; font-weight:500; line-height:1.3; }
.story-steps small { display:block; font-size:9px; color:#71786a; margin-top:5px; }
.story-steps button[aria-pressed=true] strong,.story-steps button[aria-pressed=true] .story-step-number { color:#252624; }
.story-steps i { position:absolute; height:2px; background:#858f76; bottom:0; left:0; right:0; transform:scaleX(0); transform-origin:left; }
.story-steps button[aria-pressed=true] i { transform:scaleX(var(--story-progress,0)); }
.story-steps button.story-step-complete i { transform:scaleX(1); background:#d0d5c8; }
.story-step-short { display:none; }
.workflow-window { border:1px solid #dcded8; border-radius:12px; background:white; box-shadow:0 25px 60px -25px #262d2936,0 4px 12px #262d2905; overflow:hidden; }
.workflow-window-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; height:35px; padding:0 16px; background:#f8f8f6; border-bottom:1px solid #e7e7e3; color:#767a70; font-size:9px; }
.workflow-window-bar .window-dots { width:104px; }
.workflow-example { font-size:8px; width:104px; text-align:right; }
#workflow-frame { display:block; border:0; width:100%; height:610px; background:#fff; }
.story-caption { display:flex; align-items:center; justify-content:space-between; gap:22px; text-align:left; min-height:105px; padding:22px 2px 16px; }
.story-caption>div { display:flex; gap:24px; align-items:flex-start; }
.story-caption-index { padding-top:3px; color:#7d856f; font-size:10px; line-height:1.5; font-variant-numeric:tabular-nums; white-space:nowrap; }
.story-caption h3 { font-size:16px; font-weight:500; line-height:1.5; letter-spacing:-.3px; }
.story-caption p { font-size:12px; color:#62695a; margin-top:5px; max-width:800px; line-height:1.7; }
.story-next { width:40px; height:40px; min-width:40px; display:grid; place-items:center; border:1px solid #d8ddd0; border-radius:50%; background:#fff9; }
.story-next:hover { background:white; }
.story-next .icon { width:17px; height:17px; }
.story-disclosure { font-size:10px; color:#6c7263; text-align:left; border-top:1px solid #e1e4d9; padding-top:13px; line-height:1.7; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* The tutor preview follows the plain, white Study tutor panel in the app. */
.tutor-demo { background:#fff; color:#252525; border:1px solid #d6d8d0; border-radius:12px; }
.tutor-demo-header { padding:20px 23px 17px; border-bottom:1px solid #e8e8e4; }
.tutor-demo-header>div { justify-content:space-between; }
.tutor-demo-header strong { font-size:17px; font-weight:550; letter-spacing:-.2px; }
.study-toolbar-icon { color:#777; font-size:17px; }
.tutor-demo .live-tag { margin-left:0; margin-top:9px; color:#686861; font-size:8px; letter-spacing:.6px; }
.tutor-demo-body { min-height:370px; }
.tutor-demo .demo-user { background:#f3f3f3; border:0; border-radius:17px; color:#252525; font-size:12px; line-height:1.7; padding:12px 15px; }
.tutor-demo .assistant-label { color:#666; font-size:8px; margin-bottom:12px; }
.tutor-demo .demo-assistant h3 { font-size:20px; line-height:1.35; font-weight:550; }
.tutor-demo .demo-assistant>p { color:#40403c; font-size:12px; line-height:1.8; }
.tutor-demo .analogy-card { background:transparent; border-left:2px solid #e4e4df; padding:4px 0 4px 14px; border-radius:0; }
.tutor-demo .analogy-card>span { color:#74746e; font-size:8px; }
.tutor-demo .analogy-card p { color:#44443f; font-size:12px; }
.tutor-demo .tutor-citation { color:#65655e; font-size:9px; }
.tutor-demo .prompt-options { padding-top:4px; }
.tutor-demo .prompt-options button { color:#62625d; background:#fff; border:1px solid #deded8; border-radius:9px; font-size:10px; min-height:34px; padding:7px 11px; }
.tutor-demo .prompt-options button.active,.tutor-demo .prompt-options button:hover { color:#252525; background:#f1f1ed; border-color:#cbcdc4; }
.study-preview-composer { display:flex; align-items:center; gap:12px; border:1px solid #dedede; border-radius:24px; margin:22px 24px 0; padding:10px 12px; font-size:11px; color:#777; text-align:left; }
.study-preview-composer>span:first-child { font-size:22px; font-weight:300; color:#555; }
.study-preview-composer>i { margin-left:auto; width:29px; height:29px; display:grid; place-items:center; border-radius:50%; background:#252525; color:white; font-size:18px; font-style:normal; }
.tutor-demo .demo-disclosure { color:#66665e; font-size:9px; }
@media(max-width:1100px) {
 .research-story { width:calc(100% - 56px); }
 .story-steps button { gap:8px; padding-inline:8px; }
 .story-steps strong { font-size:11px; }
 .story-steps small { font-size:8px; }
 #workflow-frame { height:630px; }
}
@media(max-width:760px) {
 .research-story { width:calc(100% - 40px); margin-top:55px; }
 .story-heading-row h2 { font-size:25px; }
 .story-heading-row .eyebrow { font-size:8px; letter-spacing:1px; }
 .story-steps { gap:5px; }
 .story-steps button { flex-direction:column; align-items:flex-start; gap:7px; min-height:74px; padding:10px 8px; }
 .story-steps small { display:none; }
 .story-steps strong { font-size:10px; }
 .story-step-full { display:none; }
 .story-step-short { display:inline; }
 #workflow-frame { height:610px; }
 .story-caption>div { gap:14px; }
 .story-caption p { font-size:11px; }
 .story-caption h3 { font-size:15px; }
}
@media(max-width:480px) {
 .research-story { width:calc(100% - 28px); margin-top:45px; scroll-margin-top:83px; }
 .story-heading-row { gap:12px; padding-inline:6px; align-items:center; margin-bottom:20px; }
 .story-heading-row h2 { font-size:22px; letter-spacing:-.8px; line-height:1.2; }
 .story-mobile-break { display:block; }
 .story-heading-row .eyebrow { font-size:6px; letter-spacing:.55px; margin-bottom:10px; }
 .story-play { font-size:9px; gap:6px; padding:8px 10px; min-height:34px; }
 .story-steps { margin-bottom:12px; gap:2px; }
 .story-steps button { min-height:67px; padding:10px 5px; gap:6px; border-radius:6px; }
 .story-steps strong { font-size:9px; letter-spacing:-.2px; }
 .story-step-number { font-size:9px; }
 .workflow-window { border-radius:9px; }
 .workflow-window-bar { padding-inline:11px; height:29px; font-size:7px; gap:7px; }
 .workflow-window-bar .window-dots { width:37px; }
 .workflow-example { font-size:6px; width:auto; }
 #workflow-frame { height:590px; }
 .story-caption { padding:19px 5px 14px; align-items:flex-start; gap:13px; }
 .story-caption>div { display:block; }
 .story-caption-index { display:block; margin-bottom:8px; font-size:9px; }
 .story-caption h3 { font-size:14px; }
 .story-caption p { font-size:11px; }
 .story-next { margin-top:19px; width:33px; height:33px; min-width:33px; }
 .story-disclosure { font-size:9px; margin-inline:5px; }
 .tutor-demo .demo-user,.tutor-demo .demo-assistant>p,.tutor-demo .analogy-card p { font-size:11px; }
 .tutor-demo .prompt-options { gap:5px; padding-inline:18px; }
 .tutor-demo .prompt-options button { font-size:9px; padding-inline:9px; }
 .study-preview-composer { margin-inline:18px; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .story-steps button { transition:none; } }

/* The two walkthroughs share controls and keep each app layout intact. */
.story-tour-picker { display:flex; width:fit-content; max-width:100%; padding:5px; gap:5px; margin:0 0 31px; border:1px solid #e3e3db; border-radius:14px; background:#f1f1eb; }
.story-tour-picker button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:42px; padding:10px 18px; border:1px solid transparent; border-radius:10px; background:transparent; color:#72756a; font-size:12px; font-weight:500; white-space:nowrap; transition:background .2s,color .2s,box-shadow .2s; scroll-margin-top:100px; }
.story-tour-picker button[aria-pressed=true] { background:#272824; color:#fff; border-color:#272824; box-shadow:0 3px 8px #2528240f; }
.story-tour-picker button:not([aria-pressed=true]):hover { color:#252624; background:#e9e9e1; }
.story-tour-picker .icon { width:15px; height:15px; }
.workflow-window { position:relative; }
#workflow-frame { opacity:1; transition:opacity .2s ease; }
.research-story[data-loading=true] #workflow-frame { opacity:0; }
.research-story[data-loading=true] .workflow-window::after { content:"Opening the walkthrough…"; position:absolute; inset:36px 0 0; display:grid; place-items:center; color:#72776a; font-size:12px; pointer-events:none; }
@media(max-width:480px) {
 .story-tour-picker { width:calc(100% - 12px); margin:0 6px 24px; padding:4px; gap:3px; border-radius:11px; }
 .story-tour-picker button { flex:1; padding:9px 6px; font-size:10px; gap:6px; min-height:39px; border-radius:8px; scroll-margin-top:84px; }
 .story-tour-picker .icon { width:12px; height:12px; }
}
@media(prefers-reduced-motion:reduce) { #workflow-frame,.story-tour-picker button { transition:none; } }

/* Playback is a passive visual surface. The outer document owns all scrolling.
   Keeping the native aspect ratio also prevents content from being cut off. */
#workflow-frame { height:auto; aspect-ratio:2834 / 2022; pointer-events:none; user-select:none; }
.workflow-window { touch-action:pan-y; }
