/* Example story: Lari's full text scrolls; the drawing stays in view and builds with each paragraph. */
.ex-story{margin-top:56px;border-top:1px solid var(--line);padding-top:30px}
.ex-head{max-width:720px}
.ex-kicker{display:block;color:var(--muted);font-size:11px;letter-spacing:.12em;text-transform:uppercase;line-height:1.5}
.ex-head h3{font-size:clamp(26px,2.5vw,36px);line-height:1.15;color:var(--green);margin:14px 0 14px}
.ex-head p{font-size:17px;line-height:1.65;color:var(--muted);margin:0;max-width:620px}
.ex-head p+p{margin-top:12px;color:var(--ink)}
.ex-skip{display:inline-block;margin-top:14px;font-size:13px;color:#827453;text-decoration:none;border-bottom:1px solid #c4a88099}
.ex-skip:hover,.ex-skip:focus-visible{color:var(--green);border-color:var(--green)}
.ex-body{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:64px;align-items:start;margin-top:28px}
.ex-figure-wrap{grid-column:2;grid-row:1;align-self:stretch}
.ex-text{grid-column:1;grid-row:1}
.ex-figure{margin:0}
.ex-progress{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:0}
.ex-progress a{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1;color:var(--muted);text-decoration:none;padding:5px 12px 5px 5px;border:1px solid var(--line);border-radius:99px;background:var(--paper);transition:color .3s,border-color .3s}
.ex-progress a span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #27361738;font-size:11px;transition:background .3s,color .3s}
.ex-progress em{font-style:normal}
.ex-progress a[aria-current]{color:var(--green);border-color:var(--green)}
.ex-progress a[aria-current] span{background:var(--green);border-color:var(--green);color:var(--white)}
.ex-scene{margin:0 0 40px}
.ex-scene h4{font:500 22px/1.3 Bricolage,sans-serif;text-align:center;margin:0 0 6px;color:var(--green)}
.ex-scene svg{display:block;width:100%;height:auto;overflow:visible}
.ex-scene figcaption{font-size:13px;line-height:1.6;text-align:center;color:var(--muted);margin-top:8px}
.ex-step+.ex-step{margin-top:72px}
.ex-step-label{display:flex;align-items:center;gap:12px;font:500 24px/1.2 Bricolage,sans-serif;color:var(--green);margin:0 0 20px}
.ex-step-label span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #ae9670;font-size:13px;color:#8f7650}
.ex-beat{font-size:17px;line-height:1.75;color:var(--ink);margin:0 0 20px;max-width:470px}
.ex-quote{display:block;margin-top:12px;padding:14px 16px;border-left:3px solid var(--sand);background:#fffaf3;border-radius:0 8px 8px 0;color:var(--green)}

/* Scroll-driven mode (added by example-story.js) */
.ex-story .vp-object,.ex-story .vp-route{animation:none}
.ex-story.is-live .ex-figure{position:sticky;top:var(--ex-top,80px)}
.ex-story.is-live .ex-scenes{display:grid}
.ex-story.is-live .ex-scene{grid-area:1/1;margin:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.ex-story.is-live .ex-scene.is-active{opacity:1;visibility:visible;transition:opacity .45s ease}
.ex-story.is-live .ex-scene svg{max-height:calc(100svh - var(--ex-top,80px) - 140px)}
.ex-story.is-live .ex-text{padding:14svh 0 38svh}
.ex-story.is-live .ex-step+.ex-step{margin-top:22svh}
.ex-story.is-live .ex-beat{margin-bottom:26svh;opacity:.3;transition:opacity .35s ease}
.ex-story.is-live .ex-step .ex-beat:last-child{margin-bottom:0}
.ex-story.is-live .ex-beat.is-active{opacity:1}
.ex-story.is-live .vd-piece{opacity:0;translate:0 9px;transition:opacity .5s ease var(--d,0ms),translate .5s ease var(--d,0ms)}
.ex-story.is-live .vd-piece.is-on{opacity:1;translate:0 0}
.ex-story.is-live [data-draw-delay]{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .7s ease var(--d,0ms)}
.ex-story.is-live .is-on [data-draw-delay]{stroke-dashoffset:0}

/* Wide screens: drawing and one paragraph together in one column. Both stay still; the paragraph fades. */
@media (min-width:861px){
  .ex-story.is-live .ex-body{display:block}
  .ex-story.is-live .ex-body::after{content:'';display:block;height:var(--ex-track,0px)}
  .ex-story.is-live .ex-stage{position:sticky;top:var(--ex-top,80px);height:calc(100svh - var(--ex-top,80px) - 12px);max-width:1120px;margin-inline:auto;flex-direction:column}
  .ex-story.is-live .ex-figure-wrap,.ex-story.is-live .ex-figure,.ex-story.is-live .ex-scenes{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
  .ex-story.is-live .ex-scenes{display:grid;grid-template-rows:minmax(0,1fr)}
  .ex-story.is-live .ex-scene{display:flex;flex-direction:column;min-height:0}
  .ex-story.is-live .ex-progress{flex:none;margin-bottom:6px}
  .ex-story.is-live .ex-figure{position:static}
  .ex-story.is-live .ex-progress{justify-content:center}
  .ex-story.is-live .ex-scene figcaption{display:none}
  .ex-story.is-live .ex-scene h4{flex:none;font-size:20px;margin-bottom:0}
  .ex-story.is-live .ex-scene svg{flex:1 1 0;min-height:0;max-height:none;width:100%;height:100%}
  .ex-story.is-live .ex-text{flex:none;display:grid;padding:0;width:100%;max-width:780px;margin:8px auto 0}
  .ex-story.is-live .ex-step{display:contents}
  .ex-story.is-live .ex-step-label{display:none}
  .ex-story.is-live .ex-beat{grid-area:1/1;margin:0;max-width:none;font-size:16px;line-height:1.6;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s}
  .ex-story.is-live .ex-beat.is-active{opacity:1;visibility:visible;transition:opacity .4s ease .1s}
}
.ex-stage{display:contents}
@media (min-width:861px){ .ex-story.is-live .ex-stage{display:flex} }
@media (max-width:860px){
  .ex-story{margin-top:40px}
  .ex-head h3{font-size:26px}
  .ex-head p{font-size:16px}
  .ex-body{grid-template-columns:minmax(0,1fr);gap:0;margin-top:20px}
  .ex-figure-wrap{display:contents}
  .ex-text{grid-column:1;grid-row:auto}
  .ex-story.is-live .ex-figure{z-index:3;background:var(--paper);padding:10px 0 12px;box-shadow:0 1px 0 var(--line),0 14px 18px -14px #514a3233}
  .ex-progress{gap:6px;margin-bottom:8px;flex-wrap:nowrap}
  .ex-progress a{font-size:12px;padding:4px 10px 4px 4px}
  .ex-progress a span{width:22px;height:22px}
  .ex-story.is-live .ex-progress a:not([aria-current]) em{display:none}
  .ex-story.is-live .ex-progress a:not([aria-current]){padding-right:4px}
  .ex-scene h4{font-size:17px;margin-bottom:2px}
  .ex-story.is-live .ex-scene figcaption{display:none}
  .ex-story.is-live .ex-scene svg{max-height:min(36svh,320px)}
  .ex-story.is-live .ex-text{padding:8svh 0 34svh}
  .ex-story.is-live .ex-step+.ex-step{margin-top:16svh}
  .ex-story.is-live .ex-beat{margin-bottom:20svh}
  .ex-beat{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .ex-story.is-live .vd-piece,.ex-story.is-live .ex-scene,.ex-story.is-live [data-draw-delay],.ex-story.is-live .ex-beat{transition:none}
}

/* Header: summary text beside one drawing of the whole story */
.ex-head{max-width:none;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:center}
.ex-head-text{max-width:620px}
.ex-head-art{margin:0}
.ex-head-svg{display:block;width:100%;height:auto;overflow:visible}
@media (max-width:860px){
  .ex-head{grid-template-columns:minmax(0,1fr);gap:20px}
}
.ex-head-img{display:block;width:100%;height:auto;border-radius:14px}

/* Example chooser */
.ex-picker{margin-top:56px;border-top:1px solid var(--line);padding-top:30px}
.ex-picker h3{font-size:clamp(24px,2.2vw,30px);line-height:1.2;color:var(--green);margin:0 0 8px}
.ex-picker p{font-size:17px;line-height:1.6;color:var(--muted);margin:0 0 20px}
.ex-picker ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ex-picker a{display:flex;align-items:center;gap:12px;height:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);text-decoration:none;font-size:15px;line-height:1.3;transition:border-color .25s,background .25s,color .25s}
.ex-picker a span{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid #ae9670;font-size:12px;color:#8f7650}
.ex-picker a em{font-style:normal}
.ex-picker a:hover,.ex-picker a:focus-visible{border-color:var(--green)}
.ex-picker a[aria-current]{background:var(--green);border-color:var(--green);color:var(--white)}
.ex-picker a[aria-current] span{border-color:#ffffff80;color:var(--white)}
.ex-picker+.ex-story{margin-top:40px}
.ex-picker.is-live~.ex-story{border-top:0;padding-top:0}

/* Examples 02-08: Lari's three steps as cards */
.ex-head-plain{display:block}
.ex-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:32px}
.ex-card{background:#fffaf3;border:1px solid var(--line);border-radius:14px;padding:24px}
.ex-card .ex-step-label{font-size:20px;margin-bottom:14px}
.ex-card p{font-size:16px;line-height:1.7;color:var(--ink);margin:0 0 14px}
.ex-card p:last-child{margin-bottom:0}

/* End of each example: next example + back to the chooser */
.ex-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:16px 28px;margin-top:40px;padding-top:24px;border-top:1px solid var(--line)}
.ex-next{display:flex;flex-direction:column;gap:4px;padding:14px 20px;border-radius:12px;background:var(--green);color:var(--white);text-decoration:none}
.ex-next span{font-size:13px;opacity:.8}
.ex-next strong{font:500 18px/1.3 Bricolage,sans-serif}
.ex-next:hover,.ex-next:focus-visible{background:#1f2b12}
.ex-back{font-size:14px;color:#827453;text-decoration:none;border-bottom:1px solid #c4a88099}
.ex-back:hover,.ex-back:focus-visible{color:var(--green);border-color:var(--green)}
@media (max-width:860px){ .ex-story.is-live .ex-text{padding-bottom:30svh} }

@media (max-width:1100px){ .ex-picker ol{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:860px){
  .ex-picker{margin-top:40px}
  .ex-picker p{font-size:16px}
  .ex-picker a{font-size:14px;padding:10px 12px;gap:10px}
  .ex-cards{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:24px}
  .ex-card{padding:20px}
  .ex-next{width:100%}
}

/* The site styles every <nav> as its header menu; undo that here. */
.ex-picker{display:block}
.ex-picker a,.ex-end a{white-space:normal;text-decoration:none}
.ex-picker a:hover,.ex-picker a[aria-current],.ex-next:hover{text-decoration:none}
.ex-back:hover{text-decoration:none}
.polished-site .ex-end>a.ex-next{color:var(--white)}
.polished-site .ex-end>a.ex-back{color:#827453}
.polished-site .ex-end>a.ex-back:hover{color:var(--green)}
.polished-site .ex-end>a::after,.polished-site .ex-end>a::before{content:none;display:none}
@media (max-width:860px){
  .ex-picker ol{gap:8px}
  .ex-picker a{gap:8px;padding:10px;font-size:13.5px;hyphens:manual}
  .ex-picker a span{width:24px;height:24px;font-size:11px}
}

/* Slim example bar: stays under the site header while an example is read */
:root{--ex-bar-h:52px}
.ex-bar{position:fixed;left:0;right:0;top:var(--ex-bar-top,56px);z-index:55;height:var(--ex-bar-h);display:flex;align-items:center;justify-content:center;gap:14px;padding:0 24px;background:#f5f0eaf5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);opacity:0;visibility:hidden;translate:0 -8px;transition:opacity .25s ease,translate .25s ease,visibility 0s linear .25s}
.ex-bar.is-shown{opacity:1;visibility:visible;translate:0 0;transition:opacity .25s ease,translate .25s ease}
.ex-bar-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.ex-bar ol{list-style:none;display:flex;align-items:center;gap:6px;margin:0;padding:0}
.ex-bar a{display:flex;align-items:center;gap:8px;height:32px;padding:0 4px 0 0;border:1px solid #ae967099;border-radius:99px;background:var(--paper);color:#8f7650;font-size:12px;text-decoration:none;white-space:nowrap;transition:border-color .2s,background .2s,color .2s}
.ex-bar a span{display:grid;place-items:center;width:30px}
.ex-bar a em{display:none;font-style:normal;font-size:14px}
.ex-bar a:hover,.ex-bar a:focus-visible{border-color:var(--green);color:var(--green);text-decoration:none}
.ex-bar a[aria-current]{background:var(--green);border-color:var(--green);color:var(--white);padding-right:14px}
.ex-bar a[aria-current] em{display:inline}
.ex-bar a::after,.ex-bar a::before{content:none;display:none}
.ex-bar-toggle{display:none}
@media (max-width:860px){
  :root{--ex-bar-h:48px}
  .ex-bar{justify-content:flex-start;padding:0 16px}
  .ex-bar-label{display:none}
  .ex-bar-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:36px;padding:0 14px;border:1px solid var(--line);border-radius:99px;background:var(--paper);color:var(--green);font:inherit;font-size:14px;cursor:pointer}
  .ex-bar-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ex-bar-toggle svg{flex:none;width:12px;height:8px;transition:rotate .2s}
  .ex-bar.is-open .ex-bar-toggle svg{rotate:180deg}
  .ex-bar ol{display:none;position:absolute;left:16px;right:16px;top:calc(100% + 6px);flex-direction:column;align-items:stretch;gap:2px;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 30px -18px #514a3266}
  .ex-bar.is-open ol{display:flex}
  .ex-bar a{height:auto;padding:9px 10px;border:0;border-radius:10px;background:none;color:var(--ink);font-size:14px;white-space:normal}
  .ex-bar a span{width:24px;height:24px;border:1px solid #ae9670;border-radius:50%;font-size:11px;color:#8f7650}
  .ex-bar a em{display:inline;font-size:14px}
  .ex-bar a[aria-current]{background:#e8dcc180;color:var(--green);padding-right:10px}
}
@media (prefers-reduced-motion:reduce){ .ex-bar,.ex-bar.is-shown{transition:none;translate:none} }

/* Intro: the three working steps every example uses */
.ex-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:56px;align-items:center}
.ex-steps-card{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:32px 34px}
.ex-steps-label{font-size:11px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin:0 0 24px}
.ex-steps{list-style:none;margin:0;padding:0}
.ex-steps li{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:18px;padding-bottom:26px}
.ex-steps li:last-child{padding-bottom:0}
.ex-steps li:not(:last-child)::before{content:'';position:absolute;left:17px;top:40px;bottom:6px;border-left:1px solid #ae9670}
.ex-steps-num{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #ae9670;font-size:13px;color:#8f7650;background:var(--white)}
.ex-steps-name{font:500 22px/1.2 Bricolage,sans-serif;color:var(--green);letter-spacing:-.02em;margin:5px 0 8px}
.ex-steps-text{font-size:17px;line-height:1.6;margin:0}
@media (max-width:1200px){ .ex-intro{grid-template-columns:minmax(0,1fr);gap:32px} .ex-steps-card{max-width:620px} }
@media (max-width:600px){ .ex-steps-card{padding:24px 20px} .ex-steps-name{font-size:20px} }

/* Click-through steps (example-story.js adds .is-steps). One step shows at a time:
   the finished drawing on top, its text underneath, then Back / Next. Nothing moves while reading. */
.ex-story.is-steps .ex-body{display:block;max-width:1040px;margin:28px auto 0}
.ex-story.is-steps .ex-progress{justify-content:center;margin-bottom:18px}
.ex-story.is-steps .ex-scenes{display:grid}
.ex-story.is-steps .ex-scene{grid-area:1/1;margin:0;visibility:hidden;opacity:0}
.ex-story.is-steps .ex-scene.is-active{visibility:visible;opacity:1;animation:ex-step-in .35s ease}
.ex-story.is-steps .ex-scene figcaption{display:none}
.ex-story.is-steps .ex-scene svg{max-height:min(60svh,600px);margin-inline:auto}
.ex-story.is-steps .ex-text{max-width:720px;margin:28px auto 0}
.ex-story.is-steps .ex-step{display:none}
.ex-story.is-steps .ex-step.is-active{display:block;animation:ex-step-in .35s ease}
.ex-story.is-steps .ex-step+.ex-step{margin-top:0}
.ex-story.is-steps .ex-step-label{display:none}
.ex-story.is-steps .ex-beat{max-width:none;margin:0 0 16px}
.ex-nav{display:none}
.ex-story.is-steps .ex-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;max-width:720px;margin:24px auto 0}
.ex-nav button{font:inherit;font-size:15px;line-height:1.3;cursor:pointer;border-radius:99px;padding:12px 20px;transition:background .25s,border-color .25s,color .25s}
.ex-nav button[hidden]{display:none}
.ex-nav-back{background:transparent;border:1px solid var(--line);color:var(--ink)}
.ex-nav-back:hover,.ex-nav-back:focus-visible{border-color:var(--green);color:var(--green)}
.ex-nav-next{margin-left:auto;background:var(--green);border:1px solid var(--green);color:var(--white)}
.ex-nav-next:hover,.ex-nav-next:focus-visible{background:#1f2b12}
@keyframes ex-step-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .ex-story.is-steps .ex-scene.is-active,.ex-story.is-steps .ex-step.is-active{animation:none} }
@media (max-width:860px){
  .ex-story.is-steps .ex-body{margin-top:20px}
  .ex-story.is-steps .ex-progress{justify-content:flex-start}
  .ex-story.is-steps .ex-progress a:not([aria-current]) em{display:none}
  .ex-story.is-steps .ex-progress a:not([aria-current]){padding-right:4px}
  .ex-story.is-steps .ex-scene svg{max-height:none}
  .ex-story.is-steps .ex-text{margin-top:20px}
  .ex-story.is-steps .ex-beat{font-size:16px}
  .ex-nav button{flex:1 1 auto}
}
@media (max-width:860px){
  .ex-nav-next{display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:14px}
  .ex-nav-lead{font-size:13px;opacity:.8}
  .ex-nav-name{font-weight:500}
}
/* Drawing builds itself once on screen (example-story.js adds .is-on, with a delay per piece in --d) */
.ex-story.is-steps .vd-piece{opacity:0;translate:0 9px;transition:opacity .3s ease var(--d,0ms),translate .3s ease var(--d,0ms)}
.ex-story.is-steps .vd-piece.is-on{opacity:1;translate:0 0}
.ex-story.is-steps [data-draw-delay]{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .45s ease var(--d,0ms)}
.ex-story.is-steps .is-on [data-draw-delay]{stroke-dashoffset:0}
.ex-story.is-steps .is-resetting .vd-piece,.ex-story.is-steps .is-resetting [data-draw-delay]{transition:none}
@media (prefers-reduced-motion:reduce){ .ex-story.is-steps .vd-piece,.ex-story.is-steps [data-draw-delay]{transition:none} }
/* Wide screens: drawing on the left, the step's text and buttons on the right, both on screen together.
   The drawing stays in place (sticky) if the text is longer than the screen. */
@media (min-width:861px){
  .ex-story.is-steps .ex-body{--ex-art-h:max(260px,calc(100svh - var(--ex-top,120px) - 104px));display:grid;grid-template-columns:minmax(0,min(58%,calc(var(--ex-art-h) * 1.5))) minmax(0,1fr);gap:48px;align-items:start;max-width:1200px}
  .ex-story.is-steps .ex-figure-wrap{grid-column:1;grid-row:1;position:sticky;top:var(--ex-top,120px)}
  .ex-story.is-steps .ex-progress{justify-content:flex-start}
  .ex-story.is-steps .ex-scene h4{text-align:center;font-size:20px;margin-bottom:8px}  /* centred over the drawing (Sean) */
  .ex-story.is-steps .ex-scene{display:flex;flex-direction:column;max-height:var(--ex-scene-max,calc(100svh - var(--ex-top,120px) - 62px))}
  .ex-story.is-steps .ex-scene svg{flex:0 1 auto;min-height:0;max-height:none}  /* shrinks to the space left under a one- or two-line title */
  .ex-story.is-steps .ex-text{grid-column:2;grid-row:1;max-width:none;margin:0;padding-top:52px}
  .ex-story.is-steps .ex-beat{font-size:17px;line-height:1.7}
  .ex-story.is-steps .ex-nav{max-width:none;margin:20px 0 0;justify-content:flex-start}
  .ex-story.is-steps .ex-nav-next{margin-left:0}
}
/* Desktop: the example locks in place while the reader scrolls through its steps (example-story.js sizes .ex-track). */
@media (min-width:861px){
  .ex-story.is-pinned .ex-body{position:sticky;top:var(--ex-pin-top,var(--ex-top,120px))}
  .ex-story.is-pinned .ex-figure-wrap{position:static}
}
/* Short or narrow desktop screens: the locked example must fit (same sizes when not locked, so the lock choice does not flip), so the text gets a little smaller and wider. */
@media (min-width:861px) and (max-height:780px), (min-width:861px) and (max-width:1180px){
  .ex-story.is-steps .ex-body{gap:36px;grid-template-columns:minmax(0,min(52%,calc(var(--ex-art-h) * 1.5))) minmax(0,1fr)}
  .ex-story.is-steps .ex-text{padding-top:44px}
  .ex-story.is-steps .ex-beat{font-size:17px;line-height:1.5}
  .ex-story.is-steps .ex-beat + .ex-beat{margin-top:10px}
  .ex-story.is-steps .ex-nav{margin-top:14px}
}
/* Narrower desktop screens: give the text more width so the longest steps fit without the example moving up. */
@media (min-width:861px) and (max-width:1180px){
  .ex-story.is-steps .ex-body{grid-template-columns:minmax(0,min(47%,calc(var(--ex-art-h) * 1.5))) minmax(0,1fr);gap:32px}
}
/* Text on the left, drawing on the right (Sean, 2026-11-09). Same column sizes as above, swapped. */
@media (min-width:861px){
  .ex-story.is-steps .ex-body{grid-template-columns:minmax(0,1fr) minmax(0,min(58%,calc(var(--ex-art-h) * 1.5)))}
  .ex-story.is-steps .ex-figure-wrap{grid-column:2}
  .ex-story.is-steps .ex-text{grid-column:1}
}
@media (min-width:861px) and (max-height:780px), (min-width:861px) and (max-width:1180px){
  .ex-story.is-steps .ex-body{grid-template-columns:minmax(0,1fr) minmax(0,min(52%,calc(var(--ex-art-h) * 1.5)))}
}
@media (min-width:861px) and (max-width:1180px){
  .ex-story.is-steps .ex-body{grid-template-columns:minmax(0,1fr) minmax(0,min(47%,calc(var(--ex-art-h) * 1.5)))}
}
/* Text sits in the middle, level with the drawing (Sean, 2026-11-09). */
@media (min-width:861px){
  .ex-story.is-steps .ex-text,.ex-story.is-steps.is-pinned .ex-text{align-self:center;padding-top:0}
}

/* Sean: the "next example" buttons sit above the line, not under it. */
.ex-end{border-top:0;padding-top:0;margin-top:32px}
/* Last step: Back on the left. The next-example button sits beside it, where Next was,
   with "back to the examples" as a small link under it. */
.ex-nav .ex-end{display:none;margin:0;padding:0;border:0}
.ex-story.is-last .ex-nav{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 16px}
.ex-story.is-last .ex-nav .ex-end{display:contents}
.ex-nav .ex-nav-back{grid-column:1;grid-row:1}
.ex-nav .ex-next{grid-column:2;grid-row:1;justify-self:end;display:flex;flex-direction:column;gap:2px;max-width:100%;padding:10px 20px;border-radius:14px;text-align:left}
.ex-nav .ex-next span{font-size:12px;line-height:1.3;opacity:.8}
.ex-nav .ex-next strong{font:inherit;font-size:15px;font-weight:500;line-height:1.3;text-wrap:balance}
.polished-site .ex-nav .ex-end>a.ex-back{grid-column:2;grid-row:2;justify-self:end;font-size:14px;padding:0}
@media (max-width:860px){
  .ex-story.is-last .ex-nav{grid-template-columns:minmax(0,1fr)}
  .ex-nav .ex-nav-back,.ex-nav .ex-next,.polished-site .ex-nav .ex-end>a.ex-back{grid-column:1;grid-row:auto}
  .ex-nav .ex-next{justify-self:stretch;align-items:center;text-align:center}
  .polished-site .ex-nav .ex-end>a.ex-back{justify-self:center}
}
/* Keep the button text light on hover; a site link rule turned it green on green. */
.polished-site .ex-story .ex-nav a.ex-next,.polished-site .ex-story .ex-nav a.ex-next:hover,.polished-site .ex-story .ex-nav a.ex-next:focus-visible{color:var(--white);text-decoration:none}
.polished-site .ex-story .ex-nav a.ex-next *{color:inherit}

/* Drawing text styles (were inline; the site blocks inline styles) */
svg.vp-scene .exs-1{fill:#3d4430}
svg.vp-scene .exs-2{font-size:19px}
svg.vp-scene .exs-3{opacity:.75}
svg.vp-scene .exs-4{fill:#897047}
svg.vp-scene .exs-5{fill:#9e8154}
svg.vp-scene .exs-6{font-size:14px;letter-spacing:1.5px}
svg.vp-scene .exs-7{font-size:15px;fill:#3d4430}
svg.vp-scene .exs-8{font-size:16px;fill:#3d4430}
svg.vp-scene .exs-9{font-size:38px;fill:#9e8154}
svg.vp-scene .exs-10{font-size:40px;fill:#9e8154}
svg.vp-scene .exs-11{fill:#6b6f5e}
svg.vp-scene .exs-12{font-size:16px;fill:#faf6e9}
svg.vp-scene .exs-13{font-size:34px;fill:#9e8154}

/* Phones: steps box text matches the rest of the page (16px). */
@media (max-width:700px){.ex-steps-text{font-size:16px}}
/* Very short windows (under 620px tall): 16px so the longest step still fits while the example holds still. */
@media (min-width:861px) and (max-height:620px){.ex-story.is-steps .ex-beat{font-size:16px}}
