/* Krek vault system (08/10). The public pages read like the vault itself: brushed aluminium, ink and one orange
   (the handle). Structure comes from keys, plates and space: no arrows, no status dots, no numbering, no
   decorative rules or seals. Scoped to <body class="vs">; loaded after the page styles. */
@font-face { font-family:'Krek Text'; src:url('/fonts/schibsted-grotesk.woff2') format('woff2'); font-weight:400 700; font-display:swap; }

/* Tokens. Light: aluminium page, paper panels. Dark: anodised graphite, the same structure. */
body.vs {
  --bg:#e4e3df; --paper:#e4e3df; --surface:#f6f5f1; --soft:#dad9d4; --hover:#d1d0cb; --line:#c6c5bf; --border:#c6c5bf;
  --text:#121213; --muted:#58575b; --subtle:#646368; --accent:#a63d0e; --signal:#ee5a1f; --on-signal:#121213;
  --success:#2f6b1f; --error:#a12d22; --warning:#7a5408; --success-bg:var(--soft); --error-bg:var(--soft); --warning-bg:var(--soft);
  --control-border:#757478; --control-border-hover:#757478;
  --button:#121213; --button-text:#f6f5f1; --key-hi:#ffffffb3; --key-lo:#0000001f;
  --font:'Krek Text',system-ui,sans-serif; --display:var(--font); --mono:var(--font);
  --m-press:50ms linear; --m-release:300ms ease-out;
  background:var(--bg); color:var(--text); font-family:var(--font);
}
@media (prefers-color-scheme:dark) { :root:not([data-theme='light']) body.vs {
  --bg:#18191b; --paper:#18191b; --surface:#212225; --soft:#2a2b2e; --hover:#323337; --line:#36383c; --border:#36383c;
  --text:#ecebe7; --muted:#a6a5a9; --subtle:#97969a; --accent:#f2814f; --button:#ecebe7; --button-text:#121213;
  --success:#b6e37a; --error:#ff907a; --warning:#e5b45b; --success-bg:var(--soft); --error-bg:var(--soft); --warning-bg:var(--soft);
  --control-border:#797a7e; --control-border-hover:#7b7c80;
  --key-hi:#ffffff14; --key-lo:#0000008c;
} }
:root[data-theme='dark'] body.vs {
  --bg:#18191b; --paper:#18191b; --surface:#212225; --soft:#2a2b2e; --hover:#323337; --line:#36383c; --border:#36383c;
  --text:#ecebe7; --muted:#a6a5a9; --subtle:#97969a; --accent:#f2814f; --button:#ecebe7; --button-text:#121213;
  --success:#b6e37a; --error:#ff907a; --warning:#e5b45b; --success-bg:var(--soft); --error-bg:var(--soft); --warning-bg:var(--soft);
  --control-border:#797a7e; --control-border-hover:#7b7c80;
  --key-hi:#ffffff14; --key-lo:#0000008c;
}
/* Unit-mass spring k500/c40 sampled every 20 ms; the final sample settles at 300 ms. */
@supports (transition-timing-function:linear(0,1)) { body.vs {
  --m-release:300ms linear(0,.0767,.23619,.41128,.56967,.69912,.79802,.86981,.9197,.95299,.97431,.98737,.99495,.99904,1.00101,1);
} }
body.vs :is(pre,code,kbd,samp,.rule-value,.verify-number,.prompt-block) { font-family:var(--font); }
/* Ink outlines sit against the actual adjacent material, including scrollable text. */
body.vs :is(a[href],button,input,textarea,select,summary,[tabindex]:not([tabindex='-1'])):where(:not(.composer textarea)):focus-visible { outline:2px solid var(--text); outline-offset:2px; }
body.vs :is(input,select,textarea):where(:not(.composer textarea)):not([type='checkbox'],[type='radio'],[type='range']) {
  --border:var(--control-border); min-height:44px; border:1px solid var(--control-border); transition:none; }
body.vs :is(input,select,textarea):where(:not(.composer textarea)):not([type='checkbox'],[type='radio'],[type='range']):hover { border-color:var(--control-border-hover); }
body.vs .search-wrap { border-color:var(--control-border); }
body.vs .search-wrap:focus-within { border-color:var(--control-border); box-shadow:none; }
body.vs .search-wrap .model-search { border:0; }
body.vs :is(button,summary):not([hidden]):where(:not(.vs-key,.site-menu>summary,#model-button)) { min-width:44px; min-height:44px; }
/* Invisible hit areas preserve the original key faces and their surrounding layout. */
body.vs :is(.vs-key,.site-header .desktop-nav a,.nav-play,.shell-footer a,.brand,.wordmark,.site-menu>summary,.soon-social a,#model-button) { position:relative; }
body.vs :where(.vs-key,.site-header .desktop-nav a,.nav-play,.shell-footer a,.brand,.wordmark,.site-menu>summary,.soon-social a,#model-button)::before {
  content:''; position:absolute; left:50%; top:50%; width:100%; height:100%; min-width:44px; min-height:44px; transform:translate(-50%,-50%); }
/* The final key can sit against the next section; put the extra area above its face. */
body.vs .vs-key::before { top:auto; bottom:0; transform:translateX(-50%); }
body.vs .skip-link { display:inline-flex; align-items:center; min-width:44px; min-height:44px; }
body.vs :is(.icon-button,.close-dialog.icon-button,#activity-close) { width:44px; height:44px; }
/* One family: headings are Schibsted at 700, set tight; text at 400–500. */
body.vs :is(h1,h2) { font-family:var(--display); font-weight:700; letter-spacing:-.035em; }
body.vs h3 { font-family:var(--font); font-weight:600; letter-spacing:-.01em; }

/* Quiet labels instead of shouting eyebrows: small, sentence case, muted, no dot. */
body.vs :is(.edition,.section-label,.paper-section-number,.eyebrow,.kicker,.feed-live,.feed-bounty-label) {
  font:500 13px/1.5 var(--font); letter-spacing:0; text-transform:none; color:var(--muted); }
body.vs .edition:before { display:none; }
/* No status dots anywhere: state is said in words. */
body.vs :is(.feed-live-dot,.attempt-feed-live,.bounty-indicator,.connection-dot,.live-dot,.status-dot) { display:none!important; }
/* Pseudo-element dots (they cannot sit inside :is()): one rule each. */
body.vs .play-details-button[data-attention='true']::after { content:none!important; }
body.vs .play-steps li::before { content:none!important; }
body.vs .review-progress li span:last-child::before { content:none!important; }
body.vs .fairness-preview li::before { content:none!important; }
body.vs .verify-status::before { content:none!important; }

/* Header: the sections are physical keys; Play is the orange handle. */
body.vs .site-header .desktop-nav { gap:6px; color:var(--text); }
body.vs .site-header .desktop-nav a { min-height:34px; padding:0 14px; border-radius:8px; background:var(--surface); color:var(--text); font-weight:500;
  box-shadow:inset 0 1px 0 var(--key-hi), 0 1px 2px var(--key-lo), 0 0 0 1px var(--line); transition:transform 120ms var(--ease),box-shadow 120ms var(--ease); }
body.vs .site-header .desktop-nav a:active { transform:translateY(1px); box-shadow:0 0 0 1px var(--line); }
body.vs .site-header .desktop-nav a[aria-current='page'] { background:var(--button); color:var(--button-text); box-shadow:0 0 0 1px var(--button); }
/* Ink on orange: 5.45:1, and the way hardware labels its one orange key. */
body.vs .nav-play { border:0; border-radius:999px; background:var(--signal); color:#121213; font-weight:600; box-shadow:0 2px 0 #a8400f; }
body.vs .nav-play:active { transform:translateY(2px); box-shadow:none; }
/* The main call to action is the same orange handle on every page, sized to its words. */
body.vs .primary-link { display:inline-flex; align-items:center; justify-content:center; justify-self:start; width:auto; max-width:max-content; gap:0;
  min-height:48px; padding:0 24px; border:0; border-radius:999px; background:var(--signal); color:#121213; font:600 15px/1.2 var(--font);
  text-decoration:none; box-shadow:0 2px 0 #a8400f; }
body.vs .primary-link:active { transform:translateY(2px); box-shadow:none; }
@media (hover:hover) and (pointer:fine) { body.vs .primary-link:hover { background:#f26a2e; color:#121213; } }

/* A key: the one control the owner liked. Links and tabs that are not the main action use it. */
body.vs .vs-key { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 16px; border:0; border-radius:9px;
  background:var(--surface); color:var(--text); font:500 14px/1.2 var(--font); text-align:left; text-decoration:none; cursor:pointer;
  box-shadow:inset 0 1px 0 var(--key-hi), 0 1px 2px var(--key-lo), 0 0 0 1px var(--line);
  transition:transform 120ms var(--ease),box-shadow 120ms var(--ease),background 120ms var(--ease),color 120ms var(--ease); }
body.vs .vs-key:active { transform:translateY(1px); box-shadow:0 0 0 1px var(--line); }
body.vs .vs-key:is([aria-selected='true'],[aria-pressed='true']) { background:var(--button); color:var(--button-text); box-shadow:0 0 0 1px var(--button); }

/* Hover lifts a key; a selected key never changes colour under the pointer. A key being pressed is not hovered: this
   rule outranks :active, so without :active in the :not() a click kept the lifted shadow and never looked pressed. */
@media (hover:hover) and (pointer:fine) {
  body.vs :is(.site-header .desktop-nav a,.vs-key,.screen-tab,.screen-step):not([aria-current='page'],[aria-selected='true'],[aria-pressed='true'],:disabled,:active):hover {
    background:var(--surface); color:var(--text); box-shadow:inset 0 1px 0 var(--key-hi), 0 2px 6px var(--key-lo), 0 0 0 1px var(--muted); }
  body.vs :is(.site-header .desktop-nav a[aria-current='page'],.vs-key:is([aria-selected='true'],[aria-pressed='true']),.screen-tab[aria-selected='true']):hover {
    background:var(--button); color:var(--button-text); }
  body.vs .nav-play:hover { background:#f26a2e; color:#121213; }
}
body.vs .mobile-nav summary { background:var(--surface); border-color:var(--line); }
body.vs .mobile-nav nav { background:var(--surface); border-color:var(--line); }

/* Hover changes material immediately. Only the displacement springs back; shadow moves during press. */
body.vs :is(.vs-key,.screen-tab,.screen-step,.site-header .desktop-nav a,.nav-play,.primary-link,.site-menu>summary,.site-menu-actions button,.site-menu nav a,.feed-filters button,.feed-pager button,.screen-toc nav a),
body.vs #account-button { transition:transform var(--m-release); }
body.vs :is(.vs-key,.screen-tab,.screen-step,.site-header .desktop-nav a,.nav-play,.primary-link,.site-menu>summary,.site-menu-actions button,.site-menu nav a,.feed-filters button,.feed-pager button,.screen-toc nav a):active:not(:disabled),
body.vs #account-button:active { transition:transform var(--m-press),box-shadow var(--m-press); }
body.vs :is(.vs-key,.screen-tab,.screen-step,.site-header .desktop-nav a,.site-menu>summary,.site-menu-actions button,.site-menu nav a,.feed-filters button,.feed-pager button,.screen-toc nav a):active:not(:disabled),
body.vs #account-button:active { transform:translateY(1px); box-shadow:0 0 0 1px var(--line); }
@media (prefers-reduced-motion:reduce) {
  body.vs :is(.vs-key,.screen-tab,.screen-step,.site-header .desktop-nav a,.nav-play,.primary-link,.site-menu>summary,.site-menu-actions button,.site-menu nav a,.feed-filters button,.feed-pager button,.screen-toc nav a):is(:active,:not(:active)):not(:disabled),
  body.vs #account-button:is(:active,:not(:active)) { transform:none; transition:none; }
}

/* Plates: paper on aluminium, no inner rule. */
body.vs .vs-cert { position:relative; background:var(--surface); border-radius:18px; padding:clamp(22px,3vw,36px);
  box-shadow:0 0 0 1px var(--line), 0 18px 40px -26px #00000059; }


/* Figures: tabular, so amounts line up and do not jump as they count. */
body.vs :is(.vs-num,.feed-bounty-value) { font-family:var(--font); font-variant-numeric:tabular-nums; letter-spacing:-.01em; }

/* Footer and screen pager: the same keys, with words instead of arrows. */
body.vs .shell-footer { border-top:0; font-size:13px; color:var(--muted); }
body.vs .shell-footer a { display:inline-flex; align-items:center; min-height:32px; min-width:24px; justify-content:center; font:500 13px var(--font); color:var(--text); }






/* Links in text remain identifiable before hover. */
body.vs main a:not([class]) { color:var(--accent); font-weight:500; text-decoration:none; }
body.vs main p a[href]:where(:not(.vs-key,.primary-link,.nav-play,[role],nav a,.screen-index a,.paper-toc a)) { text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }

/* Explainers: motion says it, one line of text confirms it. No lines, arrows, dots or numbering: order is shown by
   bars growing one after another. Each plays when its screen opens; under reduced motion it is shown complete. */
body.vs .explain { margin:0; padding:clamp(20px,calc(28 * var(--u,1px)),34px); border-radius:18px; background:var(--bg); }
body.vs .explain figcaption { margin-top:18px; font-size:15px; line-height:1.55; color:var(--muted); max-width:44ch; }
body.vs .explain-rows { display:grid; gap:12px; }
body.vs .explain-row { display:grid; grid-template-columns:minmax(84px,auto) minmax(0,1fr) 3.4em; align-items:center; gap:14px; font:500 14px var(--font); }
body.vs .explain-row span { color:var(--muted); }
body.vs .explain-row b { justify-self:end; font-family:var(--font); font-weight:600; font-variant-numeric:tabular-nums; }
body.vs .explain-row i { display:block; height:14px; width:calc(var(--share) * 100%); border-radius:7px; background:var(--text); transform-origin:left center; }
body.vs .explain-row.is-whole { padding-bottom:6px; }
body.vs .explain-row.is-bounty i { background:var(--signal); }
body.vs .explain-row.is-reserve i { background:#c9bfae; }
body.vs .explain-row.is-ops i { background:#8a898d; }
@media (prefers-reduced-motion:no-preference) {
  body.vs :is([data-screen].is-active,:not([data-screens])>section) .explain-row i { animation:explain-grow .7s var(--ease) both; }
  body.vs :is([data-screen].is-active,:not([data-screens])>section) .explain-row :is(span,b) { animation:explain-in .4s var(--ease) both; }
  body.vs .explain-row.is-bounty :is(i,span,b) { animation-delay:.75s!important; }
  body.vs .explain-row.is-reserve :is(i,span,b) { animation-delay:1.05s!important; }
  body.vs .explain-row.is-ops :is(i,span,b) { animation-delay:1.35s!important; }
  body.vs :is([data-screen].is-active,:not([data-screens])>section) .explain-row.is-whole i { animation:explain-grow .7s var(--ease) both, explain-spend .5s var(--ease) 1.6s both; }
}
@keyframes explain-grow { from { transform:scaleX(0); } }
@keyframes explain-in { from { opacity:0; transform:translateY(4px); } }
@keyframes explain-spend { to { opacity:.25; } }
/* Steps: plates light up one after another; the last is the outcome and stays marked. */
body.vs .explain-track { display:flex; flex-wrap:wrap; gap:10px; }
body.vs .explain-track span { display:inline-flex; align-items:center; min-height:46px; padding:0 18px; border-radius:10px; background:var(--surface);
  font:500 clamp(14px,calc(16 * var(--u,1px)),18px)/1.25 var(--font); color:var(--text);
  box-shadow:inset 0 1px 0 var(--key-hi), 0 1px 2px var(--key-lo), 0 0 0 1px var(--line); }
body.vs .explain-track span.is-final { background:var(--signal); color:#121213; box-shadow:0 2px 0 #a8400f; }
@media (prefers-reduced-motion:no-preference) {
  body.vs :is([data-screen].is-active,:not([data-screens])>section,main:not([data-screens])) .explain-track span { animation:explain-step 1.1s var(--ease) both; animation-delay:calc(var(--i) * .7s + .2s); }
  body.vs :is([data-screen].is-active,:not([data-screens])>section,main:not([data-screens])) .explain-track span.is-final { animation-name:explain-final; }
}
@keyframes explain-step {
  0% { opacity:0; transform:translateY(6px); }
  25% { opacity:1; transform:none; background:var(--button); color:var(--button-text); box-shadow:0 0 0 1px var(--button); }
  70% { background:var(--button); color:var(--button-text); box-shadow:0 0 0 1px var(--button); }
}
@keyframes explain-final { 0% { opacity:0; transform:translateY(8px); } 40% { opacity:1; transform:translateY(-3px); } }

/* Page to page: the browser cross-fades documents; the top bar stays put while the page underneath settles in. */
@view-transition { navigation:auto; }
body.vs :is(.site-header,.app-header) { view-transition-name:krek-top; }
::view-transition-old(root) { animation:krek-page-out 160ms cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation:krek-page-in 340ms cubic-bezier(.23,1,.32,1) both; }
::view-transition-group(krek-top) { animation-duration:220ms; }
@keyframes krek-page-out { to { opacity:0; transform:translateY(-6px); } }
@keyframes krek-page-in { from { opacity:0; transform:translateY(10px); } }
@media (prefers-reduced-motion:reduce) { @view-transition { navigation:none; } }
/* Drawings: each step carries a line drawing that is traced when the step lights up. */
body.vs .explain-track { gap:12px; }
body.vs .explain-track span { flex-direction:column; align-items:flex-start; justify-content:space-between; gap:14px;
  width:clamp(128px,calc(150 * var(--u,1px)),172px); min-height:clamp(118px,calc(132 * var(--u,1px)),150px); padding:16px; border-radius:14px; }
body.vs .explain-track em { font-style:normal; }
body.vs .explain-ico { width:clamp(34px,calc(42 * var(--u,1px)),48px); height:auto; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; overflow:visible; }
body.vs .explain-ico .ico-fill { fill:currentColor; stroke:none; }
@media (prefers-reduced-motion:no-preference) {
  body.vs :is([data-screen].is-active,:not([data-screens])>section,main:not([data-screens])) .explain-ico :is(path,rect,circle:not(.ico-fill)) {
    stroke-dasharray:1; stroke-dashoffset:1; animation:ico-draw .9s cubic-bezier(.4,0,.2,1) both; animation-delay:calc(var(--i) * .7s + .25s); }
  body.vs :is([data-screen].is-active,:not([data-screens])>section,main:not([data-screens])) .explain-ico .ico-fill { animation:explain-in .3s var(--ease) both; animation-delay:calc(var(--i) * .7s + .9s); }
}
@keyframes ico-draw { to { stroke-dashoffset:0; } }
@media (max-width:639px) { body.vs .explain-track span { width:calc(50% - 6px); min-height:108px; } }
/* Grouped explainer: what is proven, and what is only our record (drawn as outlined cards, never lit). */
body.vs .explain-groups { display:grid; gap:18px; }
body.vs .explain-group-label { margin:0 0 10px; font:600 14px var(--font); color:var(--text); }
body.vs .explain-group.is-record .explain-track span { background:transparent; color:var(--muted); box-shadow:inset 0 0 0 1.5px var(--line); }
@media (prefers-reduced-motion:no-preference) {
  body.vs :is([data-screen].is-active,:not([data-screens])>section) .explain-group.is-record .explain-track span { animation-name:explain-in; animation-duration:.5s; }
}
/* Cards never orphan one on a second row: one row for all of them, two by two (or three across) on phones. */
body.vs .explain-track { display:grid; grid-template-columns:repeat(var(--cards,4),minmax(0,1fr)); }
body.vs .explain-track:has(>span:nth-child(2):last-child) { --cards:2; }
body.vs .explain-track:has(>span:nth-child(3):last-child) { --cards:3; }
body.vs .explain-track span { width:auto; min-width:0; }
@media (max-width:639px) { body.vs .explain-track:has(>span:nth-child(4)) { --cards:2; } body.vs .explain-track span { width:auto; } }
body.vs .explain-groups .explain-track { --cards:3!important; }
/* Pages that do not page (Watch, Verify) scroll like a page: the window scrolls, not a box inside it, so the
   scrollbar sits at the edge of the window and phones get their native scroll. */
body.vs.shell-page { height:auto; min-height:100vh; min-height:100dvh; overflow:visible; }
body.vs.shell-page>main { flex:1 0 auto; min-height:auto; overflow:visible; overscroll-behavior:auto; }
/* The root uses the system's type too, so no page in the system downloads the retired Instrument Sans. */
:root:has(body.vs) { --font:'Krek Text',system-ui,sans-serif; font-family:'Krek Text',system-ui,sans-serif; }
/* Nothing in a page may push it sideways: a screen or the page scrolls down, never across. Long words in explainer
   cards break with a hyphen instead of leaving the card (whitepaper "Independent reader" on phones). */
.screens-ready body.vs [data-screen].is-active { overflow-x:clip; }
:root:has(body.vs) { overflow-x:clip; }
body.vs .explain-track span { overflow-wrap:break-word; hyphens:auto; }
@media (max-width:639px) { body.vs .explain-track:is(:has(>span:nth-child(3):last-child),.explain-groups *) span { padding:12px; font-size:14px; } }
@media (max-width:379px) { body.vs .explain-track:has(>span:nth-child(3):last-child) span { font-size:13px; padding:10px; } }
/* Short screens: centred content that does not fit starts at the top and scrolls, instead of being cut above the header,
   and the soon page's blocks keep their height instead of sliding under the next one. */
body.vs :is(.hero,.soon-hero) { align-content:safe center; align-items:safe center; }
@media (max-width:879px) { body.vs.soon-page main>* { flex-shrink:0; flex-basis:auto; } }
body.vs.soon-page main { overflow-x:hidden; }
/* The "?" key (game and home): everything that is not the game sits behind it. */
body.vs .site-menu { position:relative; flex:none; }
body.vs .site-menu>summary { list-style:none; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; cursor:pointer;
  background:var(--surface); color:var(--text); font:600 18px var(--font); box-shadow:inset 0 1px 0 var(--key-hi), 0 1px 2px var(--key-lo), 0 0 0 1px var(--line);
  transition:background-color 160ms var(--ease), transform 120ms var(--ease); }
body.vs .site-menu>summary::-webkit-details-marker { display:none; }
body.vs .site-menu>summary:active { transform:translateY(1px); }
body.vs .site-menu>summary:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
body.vs .site-menu[open]>summary { background:var(--button); color:var(--button-text); box-shadow:0 0 0 1px var(--button); }
body.vs .site-menu-panel { position:absolute; right:0; top:calc(100% + 10px); z-index:60; width:min(300px,calc(100vw - 32px)); display:grid; gap:10px; padding:10px;
  border-radius:19px; background:var(--surface); color:var(--text); text-align:left; box-shadow:0 0 0 1px var(--line), 0 24px 48px -24px #00000073; }
body.vs .site-menu[open] .site-menu-panel { animation:site-menu-in .18s var(--ease) both; }
@keyframes site-menu-in { from { opacity:0; transform:translateY(-4px); } }
body.vs .site-menu-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:36px; padding:0 4px 0 8px; font-size:12px; line-height:1.4; color:var(--muted); }
body.vs .site-menu-head .icon-button { flex:none; width:44px; height:44px; }
body.vs .site-menu-actions { display:grid; gap:4px; }
body.vs .site-menu-actions button { min-height:44px; padding:0 12px; border:0; border-radius:9px; text-align:left; cursor:pointer; background:var(--soft); color:var(--text); font:500 14px var(--font); }
body.vs .site-menu-actions button:hover { background:var(--hover); }
body.vs .site-menu-actions button[hidden] { display:none; }
body.vs .site-menu nav { display:grid; gap:2px; }
body.vs .site-menu nav a { display:grid; gap:1px; min-height:44px; align-content:center; padding:6px 10px; border-radius:9px; color:var(--text); text-decoration:none; }
body.vs .site-menu nav a:hover,body.vs .site-menu nav a:focus-visible { background:var(--soft); text-decoration:none; }
body.vs .site-menu nav a[aria-current='page'] b { color:var(--accent); }
body.vs .site-menu nav b { font-size:14px; font-weight:600; }
body.vs .site-menu nav span { font-size:12px; color:var(--muted); }
@media (prefers-reduced-motion:reduce) { body.vs .site-menu[open] .site-menu-panel { animation:none; } }
/* The header (and its menu) sits above the stage, the 3D vault and the bounty. */
body.vs .app-header:has(.site-menu) { position:relative; z-index:40; }
body.vs .site-header:has(.site-menu) { position:sticky; top:0; z-index:40; background:var(--bg); }
@media (max-width:639px) { body.vs .site-menu-panel { position:fixed; left:16px; right:16px; top:64px; width:auto; max-height:calc(100dvh - 80px); overflow-y:auto; } }
body.vs .shell-meta[hidden] { display:none!important; }
body.vs .shell-footer:has(>.shell-meta[hidden]) { justify-content:center; }
/* With overflow-x clipped on the root, a body with its own overflow became a scroll container that never scrolls,
   and nothing inside could stick (the ledger's contents, Watch's filters). The page scrolls the window. */
body.vs:is(.shell-page,:has([data-screens])) { overflow:visible; }
/* Reveals follow the scroll, not a clock: each piece appears while it enters the window and is whole once it is in,
   so nothing waits off screen or misses its moment. Browsers without scroll timelines keep the .is-active reveals. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.vs [data-screens] :is(.explain-track span,.explain-row :is(span,b),.latest-attempts>li,.paper-terms>div,.paper-steps>li,.price-path tbody tr,[data-screen]>h2,.section-heading h2,.evidence-copy h2,.faq-section h2,.closing-section) {
      animation:scroll-reveal linear both!important; animation-timeline:view()!important; animation-delay:0s!important;
      animation-range:entry calc(var(--i,0) * 12%) entry calc(75% + var(--i,0) * 8%)!important; }
    body.vs [data-screens] .explain-track span.is-final { animation-name:scroll-reveal-final!important; }
    body.vs [data-screens] .explain-row i { animation:explain-grow linear both!important; animation-timeline:view()!important; animation-delay:0s!important; animation-range:entry 10% entry 90%!important; }
    body.vs [data-screens] .explain-ico :is(path,rect,circle:not(.ico-fill)) { stroke-dasharray:1; animation:ico-draw linear both!important; animation-timeline:view()!important;
      animation-delay:0s!important; animation-range:entry calc(20% + var(--i,0) * 12%) entry calc(100% + var(--i,0) * 8%)!important; }
    body.vs [data-screens] .explain-ico .ico-fill { animation:explain-in linear both!important; animation-timeline:view()!important; animation-delay:0s!important; animation-range:entry 70% entry 100%!important; }
  }
}
@keyframes scroll-reveal { from { opacity:0; transform:translateY(18px); } }
@keyframes scroll-reveal-final { from { opacity:0; transform:translateY(18px) scale(.97); } 70% { opacity:1; transform:translateY(-2px) scale(1.01); } }
