/* Kroys docs: the site's mirror axis, moved right. Light side = navigation and explanation, dark
   side = the example for the section being read. Entering a section slides its example in from
   above while the text has moved up: the home page's split motion in a calm reading form. */
:root {
  --paper: #e8eaee; --paper-2: #dfe2e8; --paper-3: #d4d8e0; --ink: #14161b; --ink-2: #1d2027; --ink-3: #262a33; --code: #0d0f14;
  --cobalt: #3a46ff; --cobalt-2: #8f97ff; --grey: #5d6371; --grey-2: #a0a6b3; --text: #3a3f4a;
  --rule: rgba(20,22,27,.14); --rule-d: rgba(232,234,238,.12);
  --ok: #7ee2a8; --warn: #ffd27a;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", "Cascadia Code", Consolas, monospace;
  --axis: 58%;
  --head: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: linear-gradient(90deg, var(--paper) var(--axis), var(--ink) var(--axis)); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.axis { position: fixed; top: 0; bottom: 0; left: var(--axis); width: 1px; background: var(--cobalt); z-index: 5; pointer-events: none; }

/* Header across the axis */
header.top { position: sticky; top: 0; z-index: 20; height: var(--head); display: grid; grid-template-columns: var(--axis) 1fr;
  background: linear-gradient(90deg, var(--paper) var(--axis), var(--ink) var(--axis)); border-bottom: 1px solid var(--rule); }
header.top .wm { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .05em; white-space: nowrap; }
header.top .wm { position: relative; }
header.top .wm::after { content: "KROYS"; position: absolute; left: 0; top: 100%; margin-top: -3px; transform: scaleY(-1) translateY(-4px); opacity: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 75%); mask-image: linear-gradient(to top, #000, transparent 75%);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); }
header.top .wm:hover::after, header.top .wm:focus-visible::after { opacity: .3; transform: scaleY(-1) translateY(0); }
header.top .wm small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .2em; color: var(--cobalt); margin-left: 8px; }
header.top nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--grey); white-space: nowrap; }
header.top nav a, header.top .hr a { position: relative; padding: 6px 0; transition: color 180ms; }
header.top nav a::after, header.top .hr a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 240ms cubic-bezier(.2,.8,.2,1); }
header.top nav a:hover::after, header.top nav a:focus-visible::after, header.top .hr a:hover::after, header.top .hr a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
header.top nav a:hover, header.top nav a:focus-visible { color: var(--ink); }
header.top nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
header.top .hl { display: flex; align-items: center; gap: 28px; padding: 0 24px 0 32px; min-width: 0; }
header.top .hr { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 32px; color: var(--paper); font-size: 14px; }
header.top .hr .ver { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--grey-2); }
header.top .hr a:hover { color: var(--cobalt-2); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 36px; min-width: 230px; padding: 0 10px 0 12px; border-radius: 4px; border: 1px solid var(--rule); background: #fff8; color: var(--grey); font: inherit; font-size: 14px; cursor: pointer; }
.search:hover { border-color: var(--cobalt); color: var(--ink); }
.search svg { flex: none; }
.kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; border: 1px solid var(--rule); padding: 1px 6px; border-radius: 3px; }
.menu { display: none; height: 36px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; background: none; font: 500 13px var(--mono); letter-spacing: .12em; cursor: pointer; color: var(--ink); }
.b { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; border-radius: 4px; background: var(--cobalt); color: #fff;
  transition: background 180ms, transform 180ms, box-shadow 180ms; }
.b:hover, .b:focus-visible { background: #2a35e6; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(58,70,255,.3); }

/* Body grid */
.page { display: grid; grid-template-columns: 250px minmax(0, 1fr) calc(100% - var(--axis)); }
.side { position: sticky; top: var(--head); align-self: start; height: calc(100vh - var(--head)); overflow: auto; padding: 30px 16px 40px 30px; border-right: 1px solid var(--rule); scrollbar-width: thin; }
.side h6 { margin: 24px 0 8px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--grey); text-transform: uppercase; }
.side h6:first-child { margin-top: 0; }
.side h6 a:hover { color: var(--cobalt); }
.side a.l { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 3px; color: var(--text); font-size: 14.5px; line-height: 1.35; }
.side a.l:hover { background: var(--paper-2); color: var(--ink); }
.side a.l[aria-current="page"] { background: var(--ink); color: var(--paper); }
.side a.l small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--grey); margin-left: 6px; }
.side a.l[aria-current="page"] small { color: var(--grey-2); }
.side .soon { margin-left: 6px; }

article { padding: 44px 48px 120px; min-width: 0; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: .06em; }
.crumbs b { color: var(--cobalt); font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
article h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 4.8vw, 76px); line-height: .9; margin-top: 18px; text-wrap: balance; overflow-wrap: anywhere; }
article h1.code { text-transform: none; letter-spacing: .01em; font-size: clamp(40px, 4.4vw, 68px); }
article .lead { font-size: 19px; line-height: 1.55; color: var(--text); margin-top: 20px; max-width: 36em; }
article .lead code, article .lead a code { font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; margin-top: 26px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.facts div { padding: 12px 18px 12px 0; margin-right: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--grey); }
.facts b { display: block; font-family: var(--body); font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 2px; }
.intro { margin-top: 8px; }
section.sec { padding-top: 64px; scroll-margin-top: calc(var(--head) + 12px); }
section.sec .no { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--cobalt); }
section.sec h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .95; margin-top: 10px; text-wrap: balance; }
section.sec h2 a:hover { color: var(--cobalt); }
.body h3 { font-weight: 700; font-size: 18px; margin-top: 30px; }
.body p, .body li, .intro p { font-size: 16.5px; line-height: 1.7; color: var(--text); max-width: 38em; }
.body p, .intro p { margin-top: 14px; }
.body ul, .body ol { margin: 12px 0 0 20px; max-width: 38em; }
.body li { margin-top: 4px; }
.body strong, .intro strong { color: var(--ink); }
.body a, .intro a, .lead a, .member .d a, .tbl a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.body a:hover, .intro a:hover, .lead a:hover, .member .d a:hover, .tbl a:hover { text-decoration-thickness: 2px; }
code.i, .body code, .intro code, .lead code, .member .d code, .tbl code { font-family: var(--mono); font-size: 14px; background: var(--paper-2); padding: 1px 6px; border-radius: 3px; color: var(--ink); overflow-wrap: anywhere; }
kbd { font-family: var(--mono); font-size: 12.5px; padding: 1px 7px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; background: #fff; }
.note { margin-top: 20px; max-width: 38em; padding: 14px 18px; border-left: 3px solid var(--cobalt); background: #fff7; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.note b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--cobalt); margin-bottom: 4px; text-transform: uppercase; }
.soon { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; padding: 2px 7px; border: 1px solid currentColor; border-radius: 3px; vertical-align: middle; color: var(--cobalt); font-weight: 500; }
pre.lit { margin-top: 16px; max-width: 44em; font: 13.5px/1.7 var(--mono); background: var(--paper-2); color: var(--ink); padding: 14px 16px; border-radius: 4px; overflow: auto; }
.tbl { margin-top: 18px; max-width: 46em; overflow: auto; border-top: 1px solid var(--ink); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); }
.tbl td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.55; color: var(--text); }
.tbl td:first-child { min-width: 8em; }

/* D-07: the download block (install page) */
.dlbox { margin-top: 22px; max-width: 46em; border: 1px solid var(--ink); background: #fff8; padding: 22px 24px 20px; position: relative; }
.dlbox::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--cobalt); }
.dl-head b { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: .95; margin-top: 6px; color: var(--ink); }
.dl-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--cobalt); }
.dl-sub { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text); max-width: 36em; }
.body a.dl-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 24px; background: var(--cobalt); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; border-radius: 4px; box-shadow: 0 10px 30px rgba(58,70,255,.25); transition: background 200ms, transform 200ms, box-shadow 200ms; }
.body a.dl-btn:hover, .body a.dl-btn:focus-visible { background: #2a35e6; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(58,70,255,.4); }
.dl-btn svg { width: 20px; height: 20px; flex: none; }
/* Not on Windows (phones, tablets, Mac, Linux): a note with Copy link instead of the button (site.js sets .not-windows). */
.dl-alt { display: none; }
.not-windows .body a.dl-btn { display: none; }
.not-windows .dl-alt { display: block; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--cobalt); background: #fff8; }
.body .dl-alt p { margin: 0; font-size: 15px; line-height: 1.55; }
.body .dl-alt p.row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.dl-alt button.b { border: 0; cursor: pointer; font-family: inherit; }
.body .dl-alt a.anyway { font-size: 13.5px; color: var(--grey); }
.dl-btn span { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.dl-btn small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .04em; opacity: .85; }
.dl-facts { display: flex; flex-wrap: wrap; margin-top: 20px; border-top: 1px solid var(--rule); }
.dl-facts div { padding: 10px 22px 0 0; }
.dl-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.dl-facts dd { font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 2px; }
.dl-facts dd span { font-weight: 400; color: var(--grey); font-size: 13px; }
.dl-sha { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 12px; background: var(--paper-2); border-radius: 4px; flex-wrap: wrap; }
.dl-sha > span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--grey); }
.body .dl-sha code { flex: 1 1 20em; background: none; padding: 0; font-size: 13px; word-break: break-all; }
.dl-sha button { font: 500 12px var(--mono); letter-spacing: .08em; padding: 6px 12px; border: 1px solid var(--cobalt); background: var(--paper); color: var(--cobalt); border-radius: 3px; cursor: pointer; }
.dl-sha button:hover { background: var(--cobalt); color: #fff; }
.body .dl-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 15px; }
.body ul.dl-req { margin-top: 14px; }
.body .dl-req li { font-size: 15px; line-height: 1.6; }
.body .dl-ss { margin-top: 12px; font-size: 15px; line-height: 1.6; padding-left: 12px; border-left: 2px solid var(--warn); }

/* Cards (overview pages) */
.cards { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); max-width: 52em; }
.cards a, .body .cards a { display: block; padding: 14px 16px 16px; background: var(--paper); transition: background 160ms; color: inherit; text-decoration: none; }
.cards a:hover { background: #fff8; }
.cards b { display: block; font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.cards a:hover b { color: var(--cobalt); }
.cards span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--grey); }

/* API members */
.filter { margin-top: 18px; display: flex; align-items: center; gap: 10px; max-width: 38em; border-bottom: 1px solid var(--ink); }
.filter input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; padding: 10px 0; outline: none; color: var(--ink); }
.filter span { font: 12px var(--mono); color: var(--grey); white-space: nowrap; }
.mgroup { margin-top: 26px; font: 500 11px var(--mono); letter-spacing: .18em; color: var(--grey); text-transform: uppercase; }
.member { margin-top: 10px; max-width: 40em; padding: 16px 0 6px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--head) + 12px); }
.member:target { background: linear-gradient(90deg, rgba(58,70,255,.08), transparent 70%); }
.member .sig, .body .member code.sig { display: block; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; background: none; padding: 0; border-radius: 0; }
.member .sig a.self { float: right; color: var(--grey-2); font-size: 12px; margin-left: 10px; }
.member .sig a.self:hover { color: var(--cobalt); }
.member .sig .k { color: var(--cobalt); } .member .sig .t { color: #0f6a8f; } .member .sig .s { color: #1f7a45; } .member .sig .n { color: #a3550f; }
.member .d { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.member .d.gen { color: var(--grey); }
.member .d.missing { color: var(--grey); font-style: italic; }
.member dl { margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.member dt { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.member .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.member .tags span { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border: 1px solid var(--rule); border-radius: 3px; color: var(--grey); }
.member .tags span.c { border-color: rgba(58,70,255,.35); color: var(--cobalt); }
.member .tags a { text-decoration: underline; }
.values { margin-top: 18px; max-width: 46em; }

.pager { margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); max-width: 44em; }
.pager a { padding: 18px 0; } .pager a:last-child { text-align: right; }
.pager span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--grey); }
.pager b { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; overflow-wrap: anywhere; }
.pager a:hover b { color: var(--cobalt); }
.foot { margin-top: 40px; font: 12px/1.7 var(--mono); color: var(--grey); max-width: 44em; }

/* Dark side: the example of the current section */
.dark { position: sticky; top: var(--head); align-self: start; height: calc(100vh - var(--head)); color: var(--paper); padding: 40px 44px 36px; overflow: hidden; }
.dark .head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--cobalt-2); text-transform: uppercase; }
.dark .head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dark .head .count { margin-left: auto; color: var(--grey-2); letter-spacing: .1em; white-space: nowrap; }
.stack { position: relative; margin-top: 18px; height: calc(100% - 34px); }
.ex { position: absolute; inset: 0; opacity: 0; transform: translateY(-36px); transition: transform 700ms cubic-bezier(.77,0,.18,1), opacity 500ms ease; pointer-events: none; display: flex; flex-direction: column; min-height: 0; }
.ex.on { opacity: 1; transform: none; pointer-events: auto; }
.ex.below { transform: translateY(36px); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule-d); flex: none; }
.tabs button { font: 500 12.5px var(--mono); color: var(--grey-2); background: none; border: 0; padding: 9px 12px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--paper); }
.tabs button[aria-selected="true"] { color: var(--paper); border-color: var(--cobalt-2); }
.tabs .copy { margin-left: auto; }
.pane { min-height: 0; display: flex; flex-direction: column; }
.pane pre, .inline-ex pre { margin-top: 14px; font: 13.5px/1.75 var(--mono); color: #dfe2ff; overflow: auto; font-variant-ligatures: none; tab-size: 4; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.pane pre { min-height: 0; flex: 0 1 auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.k { color: var(--cobalt-2); } .t { color: #9fd8ff; } .s { color: #c7ffd8; } .c { color: #6f7590; font-style: italic; } .n { color: #ffc89a; } .p { color: #ffb3d1; }
.verify { margin-top: 14px; display: flex; gap: 8px; align-items: center; font: 12px var(--mono); color: var(--grey-2); flex: none; }
.verify i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; flex: none; }
.result { margin-top: 16px; border: 1px solid var(--rule-d); border-radius: 4px; padding: 12px 16px; font: 13px/1.7 var(--mono); color: var(--grey-2); flex: none; }
.result strong, .result b { color: var(--ok); font-weight: 500; }
.result code { color: var(--paper); background: none; padding: 0; }
.ex.empty { justify-content: flex-end; padding-bottom: 8vh; }
.ex.empty .mirror { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5vw, 84px); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(143,151,255,.35); overflow-wrap: anywhere; }
.ex.empty .mirror.ref { transform: scaleY(-1); margin-top: 6px; opacity: .35; -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); mask-image: linear-gradient(to top, #000, transparent 70%); }
.ex.empty p { margin-top: 26px; font: 12px/1.7 var(--mono); letter-spacing: .08em; color: var(--grey-2); max-width: 34em; }
.inline-ex { display: none; }

/* Editor screenshot on the dark side (E-24): the region the current section talks about stays
   bright with a cobalt outline and a label, the rest dims; small regions are brought closer. The
   picture is a capture the engine made of itself, with its regions measured in the same frame. */
.dark.has-shot { display: flex; flex-direction: column; --shot-ar: 1.7778; --shot-max: 64%; }
.dark.has-shot.code-on { --shot-max: 38%; }
.shot { flex: none; margin-top: 18px; height: min(var(--shot-max), calc((42vw - 88px) / var(--shot-ar))); transition: height 420ms cubic-bezier(.77,0,.18,1); }
.frame { position: relative; height: 100%; aspect-ratio: var(--shot-ar); max-width: 100%; overflow: hidden; border-radius: 6px; background: var(--code);
  box-shadow: 0 0 0 1px var(--rule-d), 0 18px 40px -18px rgba(0,0,0,.7); }
.frame .zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 250ms cubic-bezier(.3,.7,.2,1); }
.frame img { display: block; width: 100%; height: 100%; }
.frame .hl { position: absolute; border-radius: 3px; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 1px rgba(58,70,255,.35), 0 0 0 200vmax rgba(9,10,14,.6);
  transition: left 250ms cubic-bezier(.3,.7,.2,1), top 250ms cubic-bezier(.3,.7,.2,1), width 250ms cubic-bezier(.3,.7,.2,1), height 250ms cubic-bezier(.3,.7,.2,1); }
.frame.whole .hl { box-shadow: inset 0 0 0 2px var(--cobalt); }
.frame .hl span { position: absolute; left: -2px; bottom: 100%; margin-bottom: 5px; padding: 3px 8px; border-radius: 3px; background: var(--cobalt); color: #fff;
  font: 500 11px/1.4 var(--mono); letter-spacing: .08em; white-space: nowrap; max-width: 30em; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.frame .hl span.in { bottom: auto; top: 6px; left: 6px; margin: 0; }
.frame .hl span.r { left: auto; right: -2px; }
.frame .hl span.in.r { right: 6px; }
.dark.has-shot .stack { flex: 1; height: auto; min-height: 0; margin-top: 22px; }
.dark.has-shot .ex.empty { justify-content: flex-start; padding-bottom: 0; }
.dark.has-shot .ex.empty .mirror { font-size: clamp(30px, 3.2vw, 54px); -webkit-text-stroke: 1px rgba(143,151,255,.45); }
.ex.empty p.where { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--paper); letter-spacing: .12em; text-transform: uppercase; }
.ex.empty p.where i { width: 14px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 2px var(--cobalt); flex: none; }
.inline-shot { display: none; }

/* Search */
.pal { position: fixed; inset: 0; z-index: 50; background: rgba(12,13,17,.62); -webkit-backdrop-filter: blur(6px) saturate(.8); backdrop-filter: blur(6px) saturate(.8); display: grid; place-items: start center; padding-top: 12vh; animation: palIn 160ms ease-out; }
.pal > div { animation: palBox 200ms cubic-bezier(.2,.8,.2,1); }
@keyframes palIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes palBox { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pal, .pal > div { animation: none; } }
.pal > div { width: min(680px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--ink); box-shadow: 14px 14px 0 rgba(20,22,27,.35); }
.pal input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: inherit; font-size: 17px; padding: 16px 18px; outline: none; color: var(--ink); }
.pal ul { list-style: none; max-height: 52vh; overflow: auto; }
.pal li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 10px 18px; font-size: 15px; }
.pal li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal li a em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal li a.sel, .pal li a:hover { background: var(--ink); color: var(--paper); }
.pal li a.sel em, .pal li a:hover em { color: var(--grey-2); }
.pal li small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; opacity: .7; align-self: center; }
.pal .none { padding: 16px 18px; color: var(--grey); font-size: 14px; }
.pal .hint { display: flex; gap: 16px; padding: 9px 18px; border-top: 1px solid var(--rule); font: 11px var(--mono); letter-spacing: .08em; color: var(--grey); }

/* Narrow screens: no axis, examples follow their section */
@media (max-width: 1080px) {
  body { background: var(--paper); }
  .axis, .dark { display: none; }
  .page { grid-template-columns: 230px minmax(0,1fr); }
  header.top { background: var(--paper); grid-template-columns: 1fr auto; }
  header.top .hr { color: var(--ink); padding: 0 20px; } header.top .hr .ver { color: var(--grey); } header.top .hr a { display: none; }
  .search { min-width: 0; } .search .lbl { display: none; }
  .inline-ex { display: block; background: var(--ink); color: var(--paper); padding: 6px 18px 16px; border-radius: 4px; margin-top: 20px; max-width: 46em; }
  .inline-ex h5 { margin-top: 12px; font: 500 11px var(--mono); letter-spacing: .16em; color: var(--cobalt-2); text-transform: uppercase; }
  .inline-ex pre { margin-top: 8px; }
  .inline-shot { display: block; margin-top: 20px; max-width: 46em; }
  .inline-shot .frame { height: auto; width: 100%; }
}
@media (max-width: 760px) {
  .page { grid-template-columns: minmax(0,1fr); }
  .side { display: none; position: fixed; inset: var(--head) 0 0 0; height: auto; z-index: 30; background: var(--paper); border: 0; }
  body.nav-open .side { display: block; }
  .menu { display: inline-flex; align-items: center; }
  article { padding: 28px 18px 80px; }
  header.top .hl { padding: 0 12px 0 16px; gap: 12px; } header.top nav, header.top .hr, .search .lbl, .search .kbd { display: none; }
  .search { min-width: 0; margin-left: auto; }
  section.sec h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ex, .shot, .frame .zoom, .frame .hl { transition: none; } }
@media print { .axis, .dark, .side, header.top, .pal { display: none !important; } body { background: #fff; } .page { display: block; } .inline-ex, .inline-shot { display: block; } }

/* Only the page content fades in as it loads; header and navigation stay still (transition.js fades the content out). */
@keyframes kxIn { from { opacity: 0; } to { opacity: 1; } }
article, aside.dark, main.stage { animation: kxIn 180ms ease-out; }
