/* The four views (views.js, docs/views-plan.md): Express, Base, Deep, Outlier. A block carries data-from, the first view
   it appears in, and the page's head sets html[data-view] before it paints. A section opened with "Read the rest" shows
   its hidden blocks in any view; tools tagged outlier stay with the Outlier view. Each view has its own light: azure,
   lilac, violet, pink. */
html[data-view="express"] [data-from="base"]:not(.vw-open *),
html[data-view="express"] [data-from="deep"]:not(.vw-open *),
html[data-view="express"] [data-from="outlier"],
html[data-view="base"] [data-from="deep"]:not(.vw-open *),
html[data-view="base"] [data-from="outlier"],
html[data-view="deep"] [data-from="outlier"]{display:none!important}
.vw [hidden],.vw-end [hidden]{display:none!important}

/* the switch: four squircles on one glass rail, and a light that moves to the chosen depth. No part draws an outline:
   a transparent border keeps the size, and light along the top edge gives the shape. */
.vw{position:relative;z-index:2;max-width:560px;min-height:96px;margin:0 auto 40px}
.ra + .vw{margin-top:38px}
.lede + .vw{margin-top:40px}
.acts + .vw,.wcap + .vw{margin-top:40px}
.vw-bar{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px;border-radius:20px;corner-shape:superellipse(2.15);border:1px solid transparent;background:rgba(255,255,255,.045);box-shadow:inset 0 1px 0 rgba(255,255,255,.09)}
.vw{--vw-hue:216,180,254;--vw-i:1}
.vw[data-v="express"]{--vw-hue:125,190,255;--vw-i:0}
.vw[data-v="base"]{--vw-hue:216,180,254;--vw-i:1}
.vw[data-v="deep"]{--vw-hue:168,85,247;--vw-i:2}
.vw[data-v="outlier"]{--vw-hue:241,138,198;--vw-i:3}
.vw-mark{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px) / 4);border-radius:16px;corner-shape:superellipse(2.15);background:linear-gradient(180deg,rgba(var(--vw-hue),.5),rgba(var(--vw-hue),.2));box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 30px -6px rgba(var(--vw-hue),.95);transform:translateX(calc(var(--vw-i) * 100%));transition:transform .5s cubic-bezier(.16,1,.3,1),background .5s,box-shadow .5s}
.vw-b{position:relative;z-index:1;min-height:46px;padding:0 4px;border:0;border-radius:16px;background:none;color:#d8dbe6;font:inherit;font-family:"Avenir Next","Avenir Next LT Pro","Avenir","Jost","Jost Fallback","Nunito Sans",system-ui,sans-serif;font-size:15px;font-weight:500;letter-spacing:.01em;cursor:pointer;transition:color .3s}
.vw-b[aria-pressed="true"]{color:#fff}
.vw-b:hover{color:#fff}
.vw-b:disabled{cursor:default}
.vw-b:focus-visible{outline:2px solid rgba(216,239,252,.9);outline-offset:2px}
.vw-say{max-width:none;min-height:21px;margin:12px 0 0;text-align:center;font-size:14px;line-height:1.5;color:#d8dbe6}
.vw-say b{color:#fff;font-weight:500}

/* "Read the rest" on a section that holds hidden blocks, and the line at the end that says what the next view adds */
.vw-more,.vw-go{display:inline-flex;align-items:center;gap:9px;min-height:46px;margin:18px 0 0;padding:0 18px;border-radius:23px;corner-shape:superellipse(2.15);--vw-btn:216,180,254;border:1px solid transparent;background:rgba(var(--vw-btn),.1);box-shadow:inset 0 1px 0 rgba(var(--vw-btn),.34);color:#f4f5f9;font:inherit;font-size:15px;line-height:1;cursor:pointer;transition:background .2s,transform .2s}
.vw-more:hover,.vw-go:hover{background:rgba(var(--vw-btn),.18);transform:translateY(-1px)}
/* each way to a deeper view is lit in that view's colour, as the switch is */
.vw-go[data-v="base"]{--vw-btn:216,180,254}.vw-go[data-v="deep"]{--vw-btn:168,85,247}.vw-go[data-v="outlier"]{--vw-btn:241,138,198}
.vw-more svg{width:16px;height:16px;flex:none;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.vw-more[aria-expanded="true"] svg{transform:rotate(180deg)}
.vw-more:focus-visible,.vw-go:focus-visible{outline:2px solid rgba(216,239,252,.9);outline-offset:2px}
.vw-end{max-width:640px;margin:64px auto 0;padding:24px 22px 22px;border-radius:24px;corner-shape:superellipse(2.15);border:1px solid transparent;background:rgba(255,255,255,.04);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);text-align:center}
.vw-end p{max-width:none;margin:0;font-size:15px;line-height:1.6;color:#d8dbe6}
.vw-end p b{color:#fff;font-weight:500}
.vw-end .vw-gos{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px;margin-top:16px}
.vw-end .vw-go{margin:0;justify-content:center}
/* on a reading column the switch, the tools and the closing line take the column's width, so their edges meet the figure's */
main.page > .vw,main.page > .vw-tools,main.page > .vw-end{max-width:none}
/* on a page made of parts (Depth Mode) the switch, the tools and the closing line start at the content's left edge */
html[data-view-scope] .vw-wrap > .vw,html[data-view-scope] .vw-wrap > .vw-tools,.vw-endwrap > .vw-end{margin-left:0}
html[data-view-scope] section + .vw-wrap{margin-top:56px}
.vw-endwrap{padding-bottom:24px}
/* a switch that follows a hero section (One System) has room above it */
section + .vw{margin-top:36px}
/* One System in Express: Waves.Fund keeps its pitch for August's line; its first two lines show */
html[data-view="express"] .pj > .pj__pitch{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}

/* One System's cards: the pitch goes into Base and the tags into Deep, each spaced as the card spaces them */
.vw-pj{display:flex;flex-direction:column;gap:10px}

/* the Outlier view's tools: what this page is built from, and ASENSE */
.vw-tools{max-width:760px;margin:-16px auto 44px;padding:18px 18px 16px;border-radius:24px;corner-shape:superellipse(2.15);border:1px solid transparent;background:linear-gradient(135deg,rgba(241,138,198,.08),rgba(168,85,247,.055));box-shadow:inset 0 1px 0 rgba(255,225,242,.12),0 0 40px -18px rgba(241,138,198,.6)}
.vw-tools-h{max-width:none;margin:0 0 12px;font-family:"Avenir Next","Avenir Next LT Pro","Avenir","Jost","Jost Fallback","Nunito Sans",system-ui,sans-serif;font-size:15px;font-weight:500;color:#f4f5f9}
.vw-tools-row{display:flex;flex-wrap:wrap;gap:10px}
.vw-tool{display:inline-flex;align-items:center;min-height:44px;padding:0 15px;border-radius:15px;corner-shape:superellipse(2.15);border:1px solid transparent;background:rgba(255,255,255,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);color:#f4f5f9;font:inherit;font-size:14px;text-decoration:none;cursor:pointer;transition:background .2s}
.vw-tool:hover{background:rgba(241,138,198,.14)}
.vw-tool:focus-visible{outline:2px solid rgba(216,239,252,.9);outline-offset:2px}
/* the page's place in the practice ledger, under the tools */
.vw-nums{max-width:none;margin:12px 0 0;font-size:14px;line-height:1.6;color:#d8dbe6}

/* what a deeper view brings arrives in order */
.vw-in{animation:vw-in .65s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--vw-d, 0) * 45ms)}
@keyframes vw-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width:560px){.vw{margin-bottom:32px}.vw-b{font-size:14px}.vw-tools{margin-top:-10px}.vw-end .vw-gos{grid-auto-flow:row}}
@media (prefers-reduced-motion:reduce){.vw-mark{transition:none}.vw-in{animation:none}.vw-more svg{transition:none}}
/* under a centred block, Read the rest stands centred too (views.js adds the class) */
.vw-more.vw-more--c{display:flex;width:max-content;max-width:100%;margin-left:auto;margin-right:auto}
