/* Retained resources: the approved scroll-driven workshop notebook. */
.resources-section{padding-block:65px 55px;scroll-margin-top:0}
#ressources{--sheet:var(--white);--deep:#29382e}
#ressources .resource-story{color:var(--ink);background:var(--paper)}
#ressources .story-copy h2{font-weight:600;letter-spacing:-.035em;text-wrap:balance}
#ressources .story-copy h2 em{font-size:1.13em}
#ressources .story-copy p{line-height:1.65}
#ressources .resource-artifact h3{font-weight:600;letter-spacing:-.025em}
#ressources .resource-artifact p{margin:0}
#ressources .stamp{font-size:12px;line-height:1.5;color:var(--green)}
#ressources .resource-artifact p,#ressources .resource-artifact small{overflow-wrap:anywhere}
#ressources .replay-label{display:flex;justify-content:space-between;gap:12px;line-height:1.5}
#ressources .replay-label strong{color:var(--white);font-weight:500}
#ressources .gif-frame{aspect-ratio:16/9;position:relative;overflow:hidden;background:#edece6;border-radius:5px}
#ressources .gif-frame img,#ressources .gif-frame canvas{width:100%;height:100%;object-fit:contain;display:block}
#ressources .gif-frame canvas[hidden],#ressources .gif-frame img[hidden]{display:none}
#ressources .bottom-note{padding-top:20px;border-top:1px solid var(--line);color:var(--green);font-family:var(--serif);font-style:italic;font-size:29px;line-height:1.25;letter-spacing:-.025em}
#ressources .replay-motion{background:none;border:0;padding:4px 0;color:#d1dacb;font-size:11px;line-height:1.5;cursor:pointer;min-height:30px;text-decoration:underline;text-underline-offset:3px}
#ressources .replay-motion[hidden]{display:none}
#ressources .gif-error{padding:30px 20px;color:var(--green);font-size:13px;line-height:1.5}
#ressources .resource-story{padding:0 42px 36px;position:relative}
#ressources .story-sticky{padding:40px 0;display:grid;grid-template-columns:.8fr 1.2fr;gap:38px;align-items:center}
#ressources .story-copy h2{font-size:41px;line-height:1.1}
#ressources .story-copy>.lead{font-size:14px;max-width:31ch;margin-top:20px!important}
#ressources .story-nav{margin-top:28px}
#ressources .story-step{font-family:inherit;display:grid;grid-template-columns:25px 1fr;gap:12px;width:100%;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;text-align:left;cursor:pointer;color:var(--muted)}
#ressources .story-step svg{width:19px;height:19px;margin-top:3px}
#ressources .story-step strong{display:block;font-size:15px;line-height:1.4;font-weight:600;color:var(--ink)}
#ressources .story-step small{display:block;font-size:12px;line-height:1.6;margin-top:5px;font-weight:400}
#ressources .story-step.is-current{color:var(--accent)}
#ressources .story-step.is-current strong{color:var(--accent)}
#ressources .story-step:hover strong{color:var(--accent)}
#ressources .story-step:focus-visible,#ressources .resource-action:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
#ressources .scroll-invitation{display:flex;gap:8px;align-items:center;margin-top:23px;font-size:12px;line-height:1.5;color:var(--green)}
#ressources .scroll-invitation svg{width:15px;height:15px}
#ressources .resource-deck{position:relative;min-width:0;display:grid;gap:24px}
#ressources .resource-artifact{box-sizing:border-box;min-width:0;position:relative;border-radius:9px;background:var(--sheet);box-shadow:0 14px 34px #28312517;transform-origin:50% 40%}
#ressources .resource-artifact--replay{background:var(--deep);padding:15px;color:var(--sheet)}
#ressources .resource-artifact--replay .replay-label{margin:0 0 12px;font-size:12px;align-items:center}
#ressources .resource-artifact--replay .replay-label strong{display:flex;align-items:center;gap:7px}
#ressources .resource-artifact--replay .replay-caption{padding:19px 3px 5px}
#ressources .resource-artifact--replay .replay-caption h3{font-size:20px;color:var(--sheet)}
#ressources .resource-artifact--replay .replay-caption p{font-size:12px;color:#ced7c8;margin-top:6px}
#ressources .resource-artifact--blueprint{padding:24px 25px 18px;background:#f3f5ed}
#ressources .resource-artifact--template{padding:25px 28px 20px;background:#fffefa}
#ressources .artifact-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:1px solid #d1d8c7;margin-bottom:17px;color:var(--green);font-size:11px;line-height:1.5}
#ressources .artifact-meta>span:first-child{display:flex;align-items:center;gap:7px}
#ressources .artifact-meta svg{width:15px;height:15px}
#ressources .resource-artifact h3.artifact-heading{font-size:26px;line-height:1.12;letter-spacing:-.03em;margin-bottom:20px}
#ressources .workflow{--flow-line:#9aa78f;margin-top:16px}
#ressources .flow-node{padding:10px 12px;background:#fffefa;border:1px solid #ccd5c3;border-radius:5px;color:#34482f;font-size:12px;line-height:1.45;min-width:0}
#ressources .flow-node strong{display:block;font-weight:600}
#ressources .flow-node small{display:block;font-size:11px;line-height:1.5;margin-top:3px;color:#5c6954}
#ressources .flow-node svg{width:15px;height:15px;vertical-align:-3px;margin-right:5px}
#ressources .flow-node img{display:inline-block;width:auto;height:14px;vertical-align:-2px;margin-right:6px}
#ressources .flow-input{width:84%;margin:0 auto}
#ressources .flow-connector{display:block;width:1px;height:18px;margin:0 auto;background:var(--flow-line);position:relative}
#ressources .flow-connector:after{content:'';position:absolute;bottom:0;left:-3px;width:6px;height:6px;border-right:1px solid var(--flow-line);border-bottom:1px solid var(--flow-line);transform:rotate(45deg)}
#ressources .flow-decision{background:#e5eadd;text-align:center;width:84%;margin:0 auto}
#ressources .flow-branches{display:grid;grid-template-columns:1fr 1fr;gap:16px;position:relative;padding-top:13px;margin-top:14px}
#ressources .flow-branches:before{content:'';position:absolute;top:0;left:25%;right:25%;height:13px;border-top:1px solid var(--flow-line);border-left:1px solid var(--flow-line);border-right:1px solid var(--flow-line)}
#ressources .flow-branches:after{content:'';position:absolute;left:50%;top:-14px;height:14px;width:1px;background:var(--flow-line)}
#ressources .flow-route{text-align:center;color:var(--green);font-size:11px;line-height:1.5;margin:0 0 7px}
#ressources .flow-final{padding:7px 4px;text-align:center;font-size:11px;color:var(--green);font-weight:500;line-height:1.4}
#ressources .flow-fallback{margin-top:12px;padding-top:10px;border-top:1px solid #ccd5c3;font-size:11px;line-height:1.5;color:var(--green)}
#ressources .artifact-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;margin-top:14px;border-top:1px solid #d1d8c7;flex-wrap:wrap}
#ressources .resource-action{display:inline-flex;align-items:center;gap:7px;padding:4px 0;background:none;border:0;border-radius:0;font-family:inherit;font-size:12px;line-height:1.5;font-weight:500;color:var(--green);text-decoration:none;text-underline-offset:4px;cursor:pointer;min-height:30px}
#ressources .resource-action:hover{text-decoration:underline}
#ressources .resource-action svg{width:15px;height:15px}
#ressources .artifact-actions>span{font-size:11px;line-height:1.5;color:var(--green)}
#ressources .prompt-section{padding:13px 0;border-top:1px solid var(--line)}
#ressources .prompt-section:first-of-type{border-top:0;padding-top:0}
#ressources .prompt-section h4{font-size:11px;line-height:1.5;color:var(--green);font-weight:500;margin:0 0 6px}
#ressources .prompt-section p{font-size:13px;line-height:1.6;color:var(--ink);margin:0}
#ressources .prompt-variable{background:#eeeade;padding:2px 5px;box-decoration-break:clone;-webkit-box-decoration-break:clone;font-size:12px;line-height:1.8;color:#65573d;border-radius:3px;white-space:normal}
#ressources .prompt-inputs{display:flex;flex-wrap:wrap;gap:6px}
#ressources .resource-story>.bottom-note{margin-top:10px!important;margin-bottom:0}
#ressources .scroll-invitation{display:none}
@media(min-width:901px) and (min-height:800px){
  #ressources .resource-story.is-scroll-enhanced{height:calc(100svh + 950px)}
  #ressources .is-scroll-enhanced .story-sticky{position:sticky;top:20px;height:calc(100svh - 40px);max-height:850px;min-height:640px;padding:25px 0;overflow:visible}
  #ressources .is-scroll-enhanced .resource-deck{height:590px;display:block;perspective:1400px}
  #ressources .is-scroll-enhanced .resource-artifact{position:absolute;top:0;left:3%;width:94%;backface-visibility:hidden;will-change:transform}
  #ressources .is-scroll-enhanced .resource-artifact:not(.is-front){pointer-events:none}
  #ressources .is-scroll-enhanced .scroll-invitation{display:flex}
  #ressources .is-scroll-enhanced>.bottom-note{position:absolute;bottom:32px;left:42px;right:42px}
}
@media(max-width:1100px){#ressources .story-sticky{gap:28px;grid-template-columns:.8fr 1.2fr}#ressources .story-copy h2{font-size:36px}#ressources .resource-artifact--blueprint{padding:22px 18px 17px}#ressources .resource-artifact--template{padding:24px 22px 18px}#ressources .resource-artifact h3.artifact-heading{font-size:24px}}
@media(max-width:900px),(max-height:799px){
  #ressources .resource-story{padding:0 28px 30px}
  #ressources .story-sticky{display:block;padding:35px 0 20px}
  #ressources .story-copy{max-width:550px;margin-bottom:35px}
  #ressources .story-copy>.lead{max-width:45ch}
  #ressources .story-copy h2 br:nth-child(2){display:none}
  #ressources .story-nav{display:flex;gap:20px;flex-wrap:wrap;margin-top:22px}
  #ressources .story-step{width:auto;flex:1;min-width:120px;grid-template-columns:1fr;gap:8px;padding:12px 0}
  #ressources .story-step small{display:none}
  #ressources .story-step strong{font-size:13px}
  #ressources .resource-deck{max-width:550px;margin:0 auto;gap:30px}
  #ressources .resource-artifact{transform:none!important}
  #ressources .resource-artifact--blueprint,#ressources .resource-artifact--template{padding:24px}
}
@media(max-width:450px){
  #ressources .resource-story{padding:0 18px 28px}
  #ressources .story-sticky{padding-top:28px}
  #ressources .story-copy h2{font-size:32px}
  #ressources .story-nav{gap:12px}
  #ressources .story-step{min-width:60px}
  #ressources .story-step strong{font-size:12px}
  #ressources .resource-artifact--blueprint,#ressources .resource-artifact--template{padding:20px 16px}
  #ressources .resource-artifact--replay{padding:12px}
  #ressources .resource-artifact h3.artifact-heading{font-size:23px}
  #ressources .flow-input,#ressources .flow-decision{width:95%}
  #ressources .flow-node{padding:9px 8px;font-size:11px}
  #ressources .flow-branches{gap:10px}
  #ressources .flow-node small{font-size:11px}
  #ressources .artifact-meta{font-size:11px;gap:7px}
  #ressources .artifact-meta>span:last-child{display:none}
  #ressources .prompt-section p{font-size:13px}
  #ressources .artifact-actions{gap:5px}
}
@media(prefers-reduced-motion:reduce){
  #ressources .story-sticky{display:block}
  #ressources .story-copy{max-width:550px;margin:0 auto 32px}
  #ressources .resource-deck{max-width:550px;margin:0 auto}
  #ressources .resource-artifact{transform:none!important;will-change:auto}
}

#ressources .replay-preview{min-width:0;container-type:inline-size}
#ressources .gif-frame{isolation:isolate}
#ressources .preview-controls{position:absolute;inset:0;color:#fffefa;background:linear-gradient(180deg,rgba(17,25,20,.3),transparent 37%,rgba(17,25,20,.12) 60%,rgba(17,25,20,.86));pointer-events:none}
#ressources .chapter-badge{position:absolute;left:15px;top:14px;display:inline-flex;align-items:center;gap:7px;background:#29382eed;padding:7px 10px;border-radius:5px;font-size:12px;line-height:1.3;color:#fffefa}
#ressources .chapter-badge svg{width:15px;height:15px}
#ressources .show-chapters:focus-visible{outline:3px solid #fffefa;outline-offset:3px;border-radius:6px}
#ressources .chapter-overlay{position:absolute;left:15px;right:15px;bottom:7px;pointer-events:auto}
#ressources .chapter-segments{display:flex;gap:5px;height:3px;margin-bottom:1px}
#ressources .chapter-segments span{height:3px;background:#fffefa9c;flex:1;border-radius:1px}
#ressources .chapter-segments span:first-child{flex:1.1}
#ressources .chapter-segments span:nth-child(2){flex:1.7}
#ressources .chapter-segments span:nth-child(3){flex:2.2}
#ressources .chapter-segments span:last-child{flex:1.2}
#ressources .show-chapters{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;padding:8px 0 3px;border:0;background:transparent;text-align:left;color:#fffefa;cursor:pointer;font-size:12px;line-height:1.4}
#ressources .show-chapters strong{font-weight:500}
#ressources .chapter-hint{color:#e3e7df}
#ressources .show-chapters svg{width:16px;height:16px;transition:transform .15s ease}
#ressources .show-chapters[aria-expanded=true] svg{transform:rotate(180deg)}
#ressources .preview-chapters{padding:5px 14px 10px;background:#29382e;color:#fffefa;border-radius:0 0 5px 5px}
#ressources .preview-chapters[hidden]{display:none}
#ressources .preview-chapters ol{padding:0;margin:0;list-style:none}
#ressources .preview-chapters li{display:flex;gap:12px;font-size:12px;line-height:1.5;padding:10px 0;border-top:1px solid #52604f}
#ressources .preview-chapters li span{color:#c4cbbf;font-variant-numeric:tabular-nums}
#ressources .mini-replay>.replay-preview{margin-top:9px}
@container(max-width:360px){
  #ressources .chapter-badge{left:10px;top:10px;font-size:11px;padding:5px 7px;gap:5px}
  #ressources .chapter-badge svg{width:13px;height:13px}
  #ressources .chapter-overlay{left:10px;right:10px;bottom:4px}
  #ressources .chapter-hint{display:none}
  #ressources .show-chapters{min-height:34px;font-size:11px;padding:5px 0 2px}
  #ressources .preview-chapters li{font-size:11px;gap:9px}
}
@media(pointer:coarse){#ressources .show-chapters{min-height:44px}}
@media(prefers-reduced-motion:reduce){#ressources .show-chapters svg{transition:none}}

/* Native chapter disclosure remains usable without JavaScript. */
#ressources .replay-preview{position:relative}
#ressources .chapter-overlay{bottom:48px}
#ressources .replay-chapters{position:relative;color:#fffefa}
#ressources .replay-chapters .show-chapters{position:relative;margin:-47px 15px 0;width:calc(100% - 30px);min-height:44px;padding:8px 0;list-style:none;color:#fffefa}
#ressources .show-chapters::-webkit-details-marker{display:none}
#ressources .replay-chapters .preview-chapters{position:absolute;bottom:47px;left:8px;right:8px;margin:0;padding:7px 13px;background:#29382e;border-radius:6px;box-shadow:0 9px 24px #15201638;list-style:none;z-index:4}
#ressources .preview-chapters li:first-child{border-top:0}
#ressources .replay-chapters[open] .show-chapters svg{transform:rotate(180deg)}
@container(max-width:360px){#ressources .chapter-overlay{bottom:47px}#ressources .replay-chapters .show-chapters{margin-inline:10px;width:calc(100% - 20px)}#ressources .replay-chapters .preview-chapters{bottom:45px}#ressources .preview-chapters li{font-size:11px;padding:7px 0}}
@media(max-width:620px){.resources-section{padding-block:45px 30px}#ressources .bottom-note{font-size:25px}#ressources .replay-motion{min-height:44px}}
@media(max-width:900px),(max-height:799px),(prefers-reduced-motion:reduce){
  #ressources .replay-chapters .preview-chapters{position:static;margin:0;padding:7px 10px;box-shadow:none}
}
