/* unify.css: the type and colour roles of the new shell for moved pages (site unify r1). Scoped under body.qu.
   v2 (16.11, owner via hq): ONE indigo sheet. The whole page, header to colophon, sits on the field with one grain;
   no paper body, no light and dark bands, no filled blocks; the footer is on the field too. Paper survives only as an
   object that is paper by nature (.qu-paper: a receipt, a slip), never a section ground.
   Type roles extracted from the live /bell, /payg, /usage, /docs (and /x402), 16.11; README.md lists each source and
   where those pages disagree. No page-specific selectors. Load after /late/qu-nous.css. */

/* tokens: the page block every new-shell page sets (x402-page.css, payg-page.css, docs-page.css), plus the sheet */
html body.qu{--sans:"QN Switzer","QN Switzer Fb",Arial,sans-serif;--mono:"QN Martian","QN Martian Fb",ui-monospace,monospace;--serif:"QN Zodiak","QN Zodiak Fb",Georgia,serif;--fr:max(var(--qn-g),calc((100% - var(--qn-w)) / 2 + var(--qn-g)));--qu-field:var(--qn-field);--qu-field-muted:#c9c3ee;--qu-text:var(--serif);--qu-lede:var(--serif);overflow-x:clip;background:var(--qu-field)}
:root[data-theme=night] body.qu{--qu-field:#07021f}

/* the sheet: main and the footer on the field, each with ONE grain layer (opacity .45, screen: the value of the shell's
   header and close band grain, so header, body, close band and footer meet without a seam) */
html body.qu main,html body.qu .qf-footer{position:relative;isolation:isolate;color:var(--qn-hi);--ink:var(--qn-hi);--paper:var(--qu-field);--rule:var(--qn-line);--muted:var(--qu-field-muted);--wash:var(--qn-field-2);--control-rule:var(--qn-line);--field:var(--qu-field)}
html body.qu main{display:block;max-width:none;margin:0;padding:0 0 96px;background:var(--qu-field);font-family:var(--sans)}
html body.qu .qf,html body.qu .qf-footer{background:var(--qu-field)!important}
/* the close band and the colophon keep their own grain layers but take the sheet's ground (night: the shell paints them #0b0430, main is #07021f) */
html body.qu :is(.qf-close,.cph,.cph-in){background-color:transparent!important}
html body.qu main:before,html body.qu .qf-footer:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--qn-grain) 0 0/160px 160px;opacity:.22}
html body.qu main ::selection{background:var(--qn-ice);color:var(--qn-field)}

/* the footer on the sheet: structure untouched; its ground transparent on the field, wordmark and mark drawn light
   (home-below-1116/v1 l.96-104 and 127-128, pack-1d 1d-sheet.css l.7-11 and 52-53) */
html body.qu .qf-footer{--wordmark-filter:brightness(0) invert(1);--qf-mark:brightness(0) invert(1)}
html body.qu .qf-footer .qf-word{filter:none!important}
html body.qu .qf-footer .qf-word g{fill:var(--qn-hi)}
html body.qu .qf-footer .qf-brand:before{box-shadow:0 0 0 1px var(--qn-line)}
html body.qu .cph{border-top:1px solid var(--qn-line)}

/* sections of the one sheet: transparent, no ground of their own, parted by a hairline and air.
   .qu-open is the first screen, .qu-sec a body section, .qu-band a final record or total (same ground since v2) */
html body.qu .qu-open,html body.qu .qu-sec,html body.qu .qu-band{position:relative;box-sizing:border-box;margin:0;max-width:none;background:none}
html body.qu .qu-open{padding:28px var(--fr) 40px}
html body.qu :is(.qu-sec,.qu-band){padding:64px var(--fr) 0}
html body.qu :is(.qu-open,.qu-sec,.qu-band,.qu-read)+:is(.qu-sec,.qu-band,.qu-read){background:linear-gradient(var(--qn-line),var(--qn-line)) no-repeat 50% 0/calc(100% - 2 * var(--fr)) 1px}
html body.qu :is(.qu-open,.qu-band) a{color:inherit}
@media(max-width:800px){html body.qu .qu-open{padding:24px var(--qn-g) 32px}html body.qu :is(.qu-sec,.qu-band){padding:44px var(--qn-g) 0}html body.qu :is(.qu-open,.qu-sec,.qu-band,.qu-read)+:is(.qu-sec,.qu-band,.qu-read){background-size:calc(100% - 2 * var(--qn-g)) 1px}}

/* a paper object (a receipt or slip shown as a thing): its own ink tokens, a small surface, never a section ground */
html body.qu main .qu-paper{background:#fafaf7;color:#180b51;--ink:#180b51;--paper:#fafaf7;--muted:#574a79;--rule:#c6c1d2;--wash:#ecebf3}

/* headings: QN Archivo caps, one lowercase QN Zodiak word in <em> (ice) */
html body.qu main :is(h1,.qu-h1){margin:0 0 16px;max-width:none;padding:0;font:800 clamp(48px,6.2vw,96px)/.86 var(--qn-disp);font-stretch:62%;text-transform:uppercase;letter-spacing:-.005em;color:var(--ink);overflow-wrap:normal}
@media(max-width:800px){html body.qu main :is(h1,.qu-h1){font-size:clamp(40px,12vw,60px)}}
html body.qu main :is(h2,.qu-h2){margin:0 0 20px;max-width:none;font:800 clamp(36px,4.4vw,64px)/.9 var(--qn-disp);font-stretch:62%;text-transform:uppercase;letter-spacing:0;color:var(--ink)}
html body.qu main :is(h3,.qu-h3){margin:0 0 10px;font:600 22px/1.25 var(--sans);font-stretch:100%;text-transform:none;letter-spacing:-.01em;color:var(--ink)}
html body.qu main :is(h1,h2,.qu-h1,.qu-h2) :is(em,i){font-family:var(--serif)!important;font-style:italic;font-weight:300!important;font-stretch:100%!important;text-transform:none!important;letter-spacing:-.01em;font-size:.78em;color:var(--qn-ice)}

/* text: running text QN Zodiak in hi, as /d sets its prose (v2.2); lede and section lead QN Zodiak 300; service text QN Switzer; secondary text in the field-muted ice */
html body.qu main :is(p,li,dd){font-family:var(--qu-text);font-weight:400;font-size:18px;line-height:1.5}
html body.qu main p{margin:0 0 14px;max-width:66ch}
html body.qu main :is(.qu-lede,.qu-open h1+p){margin:0 0 20px;max-width:46ch;font:300 clamp(18px,1.5vw,22px)/1.4 var(--qu-lede);color:var(--qu-field-muted)}
html body.qu main :is(.qu-lead,h2+p){margin:0 0 24px;max-width:40ch;font:300 clamp(19px,1.8vw,26px)/1.38 var(--qu-lede);color:var(--ink)}
html body.qu main :is(.qu-note,small){font:400 14px/1.5 var(--sans);color:var(--muted)}
html body.qu main p.qu-note{max-width:72ch}

/* labels and figures: QN Martian; labels in the field-muted ice */
html body.qu main :is(.qu-k,dt,figcaption,caption,thead th){font:500 12px/1.4 var(--qn-pix)!important;font-stretch:100%;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)!important}
html body.qu main .qu-fig{display:block;font:500 clamp(28px,2.4vw,34px)/1 var(--qn-pix);font-stretch:100%;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
html body.qu main .qu-fig-xl{display:block;font:500 clamp(64px,8.4vw,124px)/.85 var(--qn-pix);font-stretch:100%;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:var(--ink)}
html body.qu main dd{margin:0 0 12px}

/* links in hi, underlined; rules, lists, code */
html body.qu main a:not([class]){color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}
@media(hover:hover){html body.qu main a:not([class]):hover{text-decoration-color:currentColor}}
html body.qu main :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--qn-ice);outline-offset:3px}
html body.qu main hr{height:0;margin:32px 0;border:0;border-top:1px solid var(--rule)}
html body.qu main :is(ul,ol):not([class]){margin:0 0 16px;padding-left:1.1em}
html body.qu main :is(ul,ol):not([class])>li{margin:0 0 6px;padding-left:.2em}
html body.qu main li::marker{color:var(--muted)}
html body.qu main code{font:400 .76em/1.4 var(--qn-pix);letter-spacing:-.035em;padding:.08em .32em;background:color-mix(in srgb,var(--ink) 9%,transparent);color:inherit;overflow-wrap:anywhere}
html body.qu main pre{box-sizing:border-box;max-width:100%;margin:0 0 16px;padding:16px 18px;overflow-x:auto;background:var(--qn-field-2);color:var(--qn-hi);font:400 13.5px/1.63 var(--qn-pix);letter-spacing:-.025em;border:1px solid var(--qn-line)}
html body.qu main pre code{font:inherit;letter-spacing:inherit;padding:0;background:none;color:inherit;overflow-wrap:normal}

/* tables: hairline rows, no zebra fill; head row in labels over a 1px hi rule; figures in Martian */
html body.qu main table{width:100%;border-collapse:collapse;margin:0 0 24px;background:none}
html body.qu main :is(tr,td,th){background:none}
html body.qu main caption{text-align:left;padding:0 0 12px}
html body.qu main thead th{text-align:left;padding:0 12px 10px 0;border-bottom:1px solid var(--ink)}
html body.qu main tbody th{text-align:left;padding:13px 12px 13px 0;border-bottom:1px solid var(--rule);font:600 16px/1.35 var(--sans);color:var(--ink)}
html body.qu main td{padding:13px 12px 13px 0;border-bottom:1px solid var(--rule);font:400 15px/1.35 var(--qn-pix);font-stretch:100%;font-variant-numeric:tabular-nums;color:var(--ink);vertical-align:top}
html body.qu main td.qu-t{font:450 16px/1.45 var(--sans)}
html body.qu main .qu-scroll{max-width:100%;overflow-x:auto}

/* notices: a hairline box on the field, never a paper card */
html body.qu main .qu-notice{margin:0 0 24px;padding:14px 16px;border:1px solid var(--qn-line);font:400 15px/1.5 var(--sans);color:var(--ink);max-width:72ch}
html body.qu main .qu-notice>.qu-k{display:block;margin-bottom:6px}

/* buttons: primary = hi fill with field text (the hero's "Explore the seats"), secondary = hairline box; 44px tall;
   hover a colour change only (the shell's rule 1) */
html body.qu main :is(.qu-btn,.qu-btn-fill){display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;padding:0 16px;border:1px solid var(--qn-line);border-radius:0;background:transparent;color:var(--qn-hi);font:400 13px/1 var(--qn-pix);font-stretch:100%;text-transform:uppercase;letter-spacing:.08em;text-decoration:none;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
html body.qu main .qu-btn-fill{border-color:var(--qn-hi);background:var(--qn-hi);color:var(--qn-field)}
@media(hover:hover){html body.qu main .qu-btn:hover{border-color:var(--qn-ice);background:rgb(207 200 255/.12)}html body.qu main .qu-btn-fill:hover{background:var(--qn-ice);border-color:var(--qn-ice);color:var(--qn-field)}}
html body.qu main .qu-btn:disabled,html body.qu main .qu-btn-fill:disabled{opacity:.5;cursor:default}
html body.qu main .qu-row{display:flex;flex-wrap:wrap;gap:10px;margin:0}
@media(max-width:800px){html body.qu main .qu-row>:is(.qu-btn,.qu-btn-fill){flex:1 1 auto}}
html body.qu main .qu-paper :is(.qu-btn-fill){border-color:var(--ink);background:var(--ink);color:var(--paper)}
html body.qu main .qu-paper .qu-btn{border-color:var(--ink);color:var(--ink)}

/* the meta line over a heading (docs .meta, payg kicker) */
html body.qu main .qu-meta{margin:0 0 14px;font:500 12px/1.5 var(--qn-pix);text-transform:uppercase;letter-spacing:.08em;color:var(--qn-ice)}

/* hidden stays hidden whatever role a class gives; anchor targets clear the sticky header */
html body.qu main [hidden]{display:none!important}
html body.qu main [id]{scroll-margin-top:88px}
@media(max-width:700px){html body.qu main [id]{scroll-margin-top:72px}}

/* frame fixes for moved pages: the footer note sets Author by name (U3); rc.css's unitless NumberFlow mask height is
   invalid inside round() and lets the prefix paint over the first digit (U3) */
html body.qu .qv-status-note{font-family:var(--sans)}
/* rc.css sets the whole footer block in Author by name (.qf font: 400 18px/1.5 Author); text the shell extract does not
   restyle (the language links, U2) inherited it */
html body.qu .qf,html body.qu .qf :is(.qf-language a,.qf-theme button,.qf-group h2,.qf-identity p,.qf-clock time){font-family:var(--sans)}
html body.qu number-flow{--number-flow-mask-height:0px}

/* reading layout with an "On this page" rail (U2 request: /learn, /governance, /log); the phone shows details.qu-toc instead */
html body.qu main .qu-read{position:relative;box-sizing:border-box;display:grid;grid-template-columns:224px minmax(0,720px);gap:64px;justify-content:center;margin:0;max-width:none;padding:64px var(--fr) 0}
html body.qu main .qu-read>aside{position:sticky;top:88px;align-self:start;max-height:calc(100vh - 112px);overflow:auto}
html body.qu main .qu-read>aside :is(h2,.qu-k){margin:0 0 8px;font:500 12px/1.4 var(--qn-pix);font-stretch:100%;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
html body.qu main .qu-read>aside :is(ul,ol){margin:0;padding:0;list-style:none}
html body.qu main .qu-read>aside li{margin:0;padding:0;font-size:15px}
html body.qu main :is(.qu-read>aside,.qu-toc) a{display:flex;align-items:center;min-height:44px;font:450 15px/1.3 var(--sans);color:var(--ink);text-decoration:none}
html body.qu main :is(.qu-read>aside,.qu-toc) a[aria-current]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
html body.qu main details.qu-toc{display:none;margin:0 0 24px;border-block:1px solid var(--rule)}
html body.qu main details.qu-toc>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none;font:500 12px/1 var(--qn-pix);text-transform:uppercase;letter-spacing:.08em;color:var(--ink)}
html body.qu main details.qu-toc>summary::-webkit-details-marker{display:none}
html body.qu main details.qu-toc>summary:after{content:"+";font:400 18px/1 var(--qn-pix)}
html body.qu main details.qu-toc[open]>summary:after{content:"\2212"}
html body.qu main details.qu-toc :is(ul,ol){margin:0 0 8px;padding:0;list-style:none}
@media(max-width:900px){html body.qu main .qu-read{grid-template-columns:minmax(0,1fr);gap:0;padding:44px var(--qn-g) 0}html body.qu main .qu-read>aside{display:none}html body.qu main details.qu-toc{display:block}}

/* night: tokens only. --qu-field goes to the night indigo; the sheet's tokens are set on main and the footer, so
   theme.css's night paper and ink do not reach inside them */
