/* The landing on white (order W3): only what the colour mapping in landing.css cannot do. */
.page-index .lx-langs{display:flex;gap:14px;font-size:13px;margin-left:auto;white-space:nowrap}
.page-index .lx-langs a{color:var(--ink-4)}
.page-index .lx-langs a[aria-current]{color:var(--ink);font-weight:500}
.page-index .lx-langs+.header-cta{margin-left:0}
/* "Sign in" (deploy 2026-11-18): a plain menu link at the header's right end, after "Explore IVY TEST".
   Where that link is hidden (761-1100 px) Sign in takes the push to the right itself. */
.site-header .header-login{font-size:13px;color:var(--ink-3);text-decoration:none;white-space:nowrap;padding:10px 0}
.site-header .header-login:hover{color:var(--ink)}
/* Pages that also load practical-entry.css give "Explore" a fixed 24 px margin; keep it as on the landing. */
.site-header:has(.header-login) .header-cta{margin-left:auto}
@media (max-width:1100px) and (min-width:761px){.site-header .header-login{margin-left:auto}}
@media (max-width:760px){.site-header .header-login{font-size:11px}.site-header:has(.header-login){gap:14px}}
@media (max-width:360px){.site-header:has(.header-login){gap:10px}}
/* A hairline round light screenshots, so they do not melt into the page. */
.page-index :is(.wk-detail,.wk-map){box-shadow:0 0 0 1px var(--rule-2)}
/* Narrow windows: only the other language shows, so the menu button stays in the window. */
@media (max-width:600px){.page-index .lx-langs a[aria-current]{display:none}.page-index .lx-langs{font-size:12px}}
/* Wide windows zoom the page (theme.css); Chrome zooms vh as well, so the hero divides it back. */
.page-index .cadence-opening{min-height:calc(100svh / var(--z,1) - 84px)}
@media (max-width:760px){.page-index .cadence-opening{min-height:calc(100svh - 72px)}}

/* W4 A1 (Paul, 2026-11-18): the page ends in black. v10 went from its black page into a light end; here the white
   page goes into a black end over the same distances, and the last section and the footer take v10's dark colours. */
.page-index .cadence-arrival{background:linear-gradient(to bottom,#ffffff 0,#ebebea 65px,#aaaaa9 145px,#3f3f3e 235px,#080808 310px,#080808 100%)}
@media (max-width:760px){.page-index .cadence-arrival{background:linear-gradient(to bottom,#ffffff 0,#ebebea 40px,#aaaaa9 90px,#3f3f3e 150px,#080808 195px,#080808 100%)}}
.page-index :is(.next-focus,.site-footer){
  --page:#080808;--page-2:#191919;--tint-1:#151515;--tint-2:#080808;--tint-3:#222222;--tint-4:#2a2a2a;
  --ink:#f4f4f4;--ink-2:#e3e3e3;--ink-3:#cfcfcf;--ink-4:#ababab;--ink-5:#8a8a8a;--ink-6:#6a6a6a;
  --rule-1:#4f4f4f;--rule-2:#333333;--rule-3:#262626;--rule-4:#1a1a1a;
  --bg:#080808;--surface:#151515;--muted:#ababab;--line:#333333;--accent:#f4f4f4;--paper:#151515;--dark:#080808;
  background:#080808;color:#f4f4f4;color-scheme:dark}
.page-index .next-focus h2,.page-index .next-focus-links h3,.page-index .site-footer .wordmark{color:#f4f4f4}
.page-index .next-focus>div>p,.page-index .next-focus-links p,.page-index .footer-top>div{color:#ababab}
.page-index .next-focus-links>a{border-color:#333333;color:#f4f4f4}
.page-index .site-footer{border-top-color:#1f1f1f}
.page-index .footer-top .small-label{color:#8a8a8a}
.page-index .footer-top a:hover{color:#f4f4f4}
.page-index .footer-bottom{color:#8a8a8a;border-color:#333333}
.page-index :is(.next-focus,.site-footer) a:focus-visible{outline-color:#f4f4f4}

/* Narrow windows (W4, phone fix): the pinned figure sits at the very top at its own height, so the steps passing
   under it have room to be read (landing.js sizes the steps to that room). Desktop is unchanged. */
@media (max-width:1000px){
  .page-index .lx-route.is-live .lx-stage{display:block;top:0;height:auto;min-height:0;padding-block:14px 12px}
  .page-index .lx-route.is-live .lx-stage svg{max-height:none}
}

/* "The app" page (src/site/app.mjs): the landing's tablet walk under one line. */
.page-index .app-hero{padding-top:clamp(48px,6vw,96px);padding-bottom:clamp(20px,3vw,40px)}
.page-index .app-hero h1{font-size:clamp(38px,4.8vw,72px);line-height:1.05;letter-spacing:-.05em;max-width:18ch;margin:0}
.page-app .lx-route.app-walk{padding-top:0;border-top:0}
.page-index .app-end{padding-top:24px;padding-bottom:40px}
.page-index .app-end p{font-size:clamp(22px,2.2vw,30px);line-height:1.3;letter-spacing:-.03em;color:var(--ink);max-width:30ch;margin:0}
.page-index .app-end .lx-links{margin-top:26px}

/* The legal pages (order W9): the old documents' own rules (styles.css .legal-document) under the landing's resets. */
.page-index .legal-page .legal-document h2{margin:44px 0 14px}
.page-index .legal-page .legal-document h3{margin:26px 0 12px}
.page-index .legal-page .legal-document :is(p,ul,ol){margin:0 0 14px}
.page-index .legal-page .legal-document ul{padding-left:1.2em}
.page-index .legal-page .legal-document li{margin-bottom:6px}
.page-index .legal-page .legal-document .meta{flex-wrap:wrap;margin-top:22px}
.page-index .legal-page .legal-document .contents summary{cursor:pointer}
.page-index .legal-page .legal-document .hero{min-height:0;padding-top:0}
/* Wide windows (fix 2026-11-18): above 1600 px the page is zoomed (theme.css), and Chrome measures vw before the
   zoom, so the old side padding calc((100vw - 1424px)/2) grew with the zoom and squeezed the header until it
   overflowed (sideways scroll from about 2500 px). Dividing by --z keeps the padding in the zoomed page's own px. */
@media (min-width:1600px){
  .site-header,.exercise,.academy-feature,.closing,.academy-contact,.academy-pricing{padding-inline:max(var(--pad),calc((100vw / var(--z,1) - 1424px)/2))}
  .page-index .site-footer,.page-index .next-focus,.next-focus,.research-reading-note,.system-boundaries,.interior-page .company-details,.interior-page .site-footer{padding-inline:max(var(--pad),calc((100vw / var(--z,1) - 1440px)/2))}
}
