/* frontend/terminal/research-read.css: a /research reading page (the river design), written by hand; see docs/research-pages/README.md. */
/* Zena research, a reading page: the film made into a page you read.
   The opening is one screen like the index's: the piece's number in the river, its sentence, the title, the author line.
   Then the text on the flat ground (the river gone), one column, and nothing else. The last screen is the next piece.
   Two inks only, the site's own (zena-tokens.css, dark): cream on warm charcoal, and a hairline tone for lines alone.
   Nothing changes size; the page moves by clip-path (and one progress line that grows). Dark only for now. */

:root{
  color-scheme:dark;
  --z-title:#f2efe7;
  --z-surface:#1d1c1a;
  --z-raised:#262523;
  --z-hairline-strong:#4a4741;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  --head:64px;
  --logo:28px;
  --gutter:56px;
  --statement:232px;
  --line:21px;
  --h1:40px;
  --text:19px;
  --h2:34px;
  --h3:24px;
  --quote:26px;
  --row:17px;
  --small:15px;
  --h2-air:120px;
  --wipe:700ms;
  --draw:600ms;
  --wipe-ease:cubic-bezier(.7,0,.2,1);
}
/* One composition, sized by the window and never in steps: the statement is as large as the window allows (the widest
   statement fits the width; it is a quarter of the height, as in the film) and everything around it follows it. Drag the
   window and it all changes together, smoothly; nothing jumps at a breakpoint and nothing is ever cut off. */
:root{
  --gutter:clamp(16px,3.9vw,56px);
  --statement:min(calc((100vw - 2 * var(--gutter)) / 4.3),25.8vh,348px);
  --line:clamp(16px,calc(var(--statement) * .0905),26px);
  --gap:clamp(16px,calc(var(--statement) * .12),36px);
}
@supports (height:1svh){:root{--statement:min(calc((100vw - 2 * var(--gutter)) / 4.3),25.8svh,348px)}}
/* A title set as the statement (the page's own title on its opening, a part's title on its screen, the next piece's
   title at the end) follows the window by one formula of its own, smaller than a number's because it runs to several
   words and may break over lines. A short one (the essay's two words) has room to be larger. */
:root{
  --title:min(calc((100vw - 2 * var(--gutter)) / 10.5),11vh,104px);
  --title-short:min(calc((100vw - 2 * var(--gutter)) / 9.6),17vh,184px);
}
@supports (height:1svh){:root{
  --title:min(calc((100vw - 2 * var(--gutter)) / 10.5),11svh,104px);
  --title-short:min(calc((100vw - 2 * var(--gutter)) / 9.6),17svh,184px);
}}
/* the reading text changes as smoothly: 17px on a phone to 19px on a desk, with everything set from it */
:root{
  --h1:clamp(26px,calc(var(--statement) * .172),48px);
  --text:clamp(17px,calc(16.2px + .2vw),19px);
  --h2:clamp(26px,calc(22.9px + .8vw),34px);
  --h3:clamp(21px,calc(19.8px + .3vw),24px);
  --quote:clamp(21px,calc(19px + .5vw),26px);
  --row:clamp(16px,calc(15.6px + .1vw),17px);
  --small:clamp(14px,calc(13.6px + .1vw),15px);
  --h2-air:clamp(88px,calc(75px + 3.2vw),120px);
}
@media (max-width:979px){:root{--head:60px;--logo:24px}}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;background:var(--z-surface);color:var(--z-title)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--head) + 24px)}
body{
  font-family:var(--sans);font-weight:400;font-size:16px;line-height:1.4;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-kerning:normal;
  overflow-x:clip;
}
h1,h2,h3,p,figure,blockquote{margin:0}
h1,h2,h3{font:inherit}
a{color:var(--z-title)}
button{font:inherit;color:var(--z-title);background:none;border:0;padding:0;margin:0;cursor:pointer;border-radius:0}
:focus-visible{outline:2px solid var(--z-title);outline-offset:3px;border-radius:2px}
::selection{background:var(--z-title);color:var(--z-surface)}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip{position:absolute;left:var(--gutter);top:-200px;z-index:40;padding:10px 14px;background:var(--z-surface);font-size:16px;font-weight:600}
.skip:focus{top:12px}

/* The river: fixed, filling the window, behind everything. Without the engine it is an empty, transparent canvas. */
.river{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0;pointer-events:none}
html:not(.js) .river{display:none}
.top,main{position:relative;z-index:1}

/* The one piece of chrome: a 2px ink line across the very top that grows with the reading. */
.progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:6;pointer-events:none;display:none}
html.js .progress{display:block}
.progress i{display:block;height:100%;background:var(--z-title);transform-origin:0 50%;transform:scaleX(0)}

/* Header: floats on the ground. No bar, no hairline. */
.top{
  position:fixed;top:0;left:0;right:0;z-index:5;height:var(--head);
  display:flex;align-items:center;gap:24px;padding:0 var(--gutter);
}
/* where the header would sit over the running text (a narrow window), it steps up out of the way while the reader
   reads down, and comes back the moment they scroll up, reach a screen, or tab into it */
html.mo .top{transition:transform 360ms var(--wipe-ease)}
html:not(.js) .top{position:absolute}
.top[data-away]:not(:focus-within){transform:translateY(-100%)}
.brand{display:flex;align-items:center;min-height:40px;flex:none}
.brand img{display:block;height:var(--logo);width:auto}
.top-links{display:flex;align-items:center;gap:24px;margin-left:auto}
.top-links a{display:inline-flex;align-items:center;min-height:36px;font-size:16px;line-height:1.4;text-decoration:none;white-space:nowrap}
.top-links a[aria-current],.top-links a:hover,.top-links a:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}

/* ============ a screen: one group, optically centred; the statement sits on the same line of every screen ============ */
.stage{
  min-height:100vh;min-height:100svh;
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:.72fr auto 1fr;
  padding:var(--head) var(--gutter);
  text-align:center;
}
.group{grid-row:2 / 4;display:grid;grid-template-rows:subgrid;justify-items:center;min-width:0}
.rest{align-self:start;display:flex;flex-direction:column;align-items:center;min-width:0}
.statement{
  display:block;
  font-size:var(--statement);font-weight:700;letter-spacing:-0.042em;line-height:.95;
  white-space:nowrap;color:var(--z-title);
  padding-left:.042em; /* the tracking after the last letter would pull it off centre: give it back on the left */
}
.statement.is-title{
  max-width:min(16em,100%);
  font-size:var(--title);font-weight:600;letter-spacing:-0.032em;line-height:1.03;
  white-space:normal;text-wrap:balance;overflow-wrap:break-word;padding-left:0;
}
.statement.is-title.is-short{font-size:var(--title-short);max-width:100%}
.pair{display:grid;justify-items:center;min-width:0;font-weight:400}
.line{
  display:block;margin-top:var(--gap);max-width:30em;
  font-size:var(--line);font-weight:400;line-height:1.4;text-wrap:pretty;
}
.line .num{font-weight:600}
.h1{margin-top:48px;max-width:20em;font-size:var(--h1);font-weight:600;line-height:1.15;letter-spacing:-0.012em;text-wrap:balance}
.h1-main,.h1-sub{display:block}
.h1-sub{margin-top:calc(var(--gap) * .55);font-size:var(--line);font-weight:400;line-height:1.4;letter-spacing:0}
.meta{margin-top:16px;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 20px;font-size:17px;line-height:1.4}
.title{margin-top:var(--gap);font-size:clamp(15px,calc(var(--statement) * .0733),19px);font-weight:600;line-height:1.4;max-width:36em}
.go{text-decoration:none}
.go:hover,.go:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.go::after{
  content:"";display:inline-block;width:16px;height:12px;margin-left:10px;vertical-align:-1px;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h14.5M9.5 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/16px 12px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h14.5M9.5 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/16px 12px no-repeat;
}

/* an essay part: its title is the statement, its numeral a small line over it */
.part-h{font-weight:400}
.part .stage{grid-template-rows:.72fr auto auto 1fr}
.part .group{grid-row:2 / 5}
.part .kicker{display:block;margin-bottom:calc(var(--gap) * .8);font-size:var(--line);font-weight:400}

/* the end: "Next" above the next piece's number, then the way back and the footer */
.next .stage{grid-template-rows:.72fr auto auto 1fr auto;padding-bottom:0}
.next .group{grid-row:2 / 5}
.kicker{align-self:end;margin-bottom:24px;font-size:17px;font-weight:600;line-height:1.4}
.after{grid-row:5;padding-top:56px;text-align:center}
.screen{scroll-margin-top:calc(-1 * (var(--head) + 24px))}
.back{font-size:17px;font-weight:600;line-height:1.4}
.back a{text-decoration:none}
.back a:hover,.back a:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.foot{padding:40px 0 48px;text-align:center}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;font-size:14px;line-height:1.4}
.foot-links a{text-decoration:none}
.foot-links a:hover,.foot-links a:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.legal{max-width:46em;margin:16px auto 0;font-size:13px;line-height:1.5}
.legal + .legal{margin-top:8px}

/* ============ the text: one column on the flat ground ============ */
.text{padding:var(--h2-air) var(--gutter) 160px}
.part + .text{padding-top:0}
.col{
  display:grid;grid-template-columns:minmax(0,1fr) min(68ch,100%) minmax(0,1fr);
  font-size:var(--text);line-height:1.6;
}
.col>*{grid-column:2;min-width:0}
.col>:first-child{margin-top:0}
.col p{margin:0 0 1.05em;text-wrap:pretty}
.col ol,.col ul{margin:0 0 1.05em;padding-left:1.3em}
.col li{margin:0 0 .45em;padding-left:.2em}
.col li::marker{font-variant-numeric:tabular-nums}
.col a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.col h2{margin:var(--h2-air) 0 28px;font-size:var(--h2);font-weight:600;line-height:1.15;letter-spacing:-0.012em;text-wrap:balance}
.col h3{margin:72px 0 20px;font-size:var(--h3);font-weight:600;line-height:1.25;letter-spacing:-0.006em;text-wrap:balance}
.col h2+h3{margin-top:0}
.col i,.col em{font-style:italic}

/* the essay */
.rs-part{margin:0 0 64px;font-size:var(--quote);line-height:1.45;font-style:italic}
.rs-part p{margin:0 0 .8em}
.rs-part p:last-child{margin-bottom:0}
.rs-part i{font-style:normal}
.rs-study{margin:0 0 .4em}
.rs-runin{font-weight:600}
.rs-refs{padding-left:1.6em!important}
.rs-refs li{margin:0 0 1.3em;padding-left:.3em}
.rs-ref-cite,.rs-ref-note,.rs-ref-links{display:block}
.rs-ref-note,.rs-ref-links{margin-top:.4em}
.rs-ref-links a{overflow-wrap:anywhere}
.rs-ref-links a+a{margin-left:1em}
sup.rs-cite{font-size:.66em;line-height:0;vertical-align:.62em;font-weight:600;font-style:normal}
.col sup.rs-cite a{text-decoration:none;padding:0 .14em}
.col sup.rs-cite a:hover,.col sup.rs-cite a[aria-expanded=true]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.cite-row{margin-top:40px!important;font-size:17px}
.copy{font-weight:600}
.copy:hover,.copy:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.copy-in{display:inline-grid}
.copy-in>span{grid-area:1/1}
.copy-in>span+span,.copy[data-done] .copy-in>span:first-child{visibility:hidden}
.copy[data-done] .copy-in>span+span{visibility:visible}

/* the manuscript pages: one quiet row */
.pages{padding-top:40px;padding-bottom:40px}
.pages-row{display:flex!important;justify-content:center;gap:24px;list-style:none;padding:0!important;margin:0!important}
.pages-row li{flex:0 1 232px;margin:0;padding:0}
/* the row of pages may run wider than the text's measure: it spans the whole column grid and stays centred */
.pages .col>.pages-row{grid-column:1 / -1}
.page{display:block;text-decoration:none!important}
.page img{display:block;width:100%;height:auto;outline:1px solid var(--z-hairline-strong);outline-offset:-1px}
.pages-cap{margin:20px 0 0!important;text-align:center;font-size:17px;line-height:1.4}
@media (max-width:599px){.pages-row{gap:12px;flex-wrap:wrap}.pages-row li{flex:0 1 calc(50% - 6px)}}

/* ============ figures: plain as the type ============ */
.rs-figure{display:flex;flex-direction:column;margin:56px 0 64px}
.rs-figure figcaption{order:-1;margin-bottom:28px;font-size:var(--text);line-height:1.5;font-weight:400;text-wrap:pretty}
.rs-figure figcaption b{font-weight:600}
.rs-plot{font-size:var(--row);line-height:1.4}

/* bars: label left, value right, the bar between; an ink outline, solid ink for the emphasised row */
.rs-bars,.rs-ivals{display:grid;grid-template-columns:minmax(0,15em) minmax(96px,1fr) auto;column-gap:20px}
.rs-bar,.rs-ival{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:center;padding:8px 0;cursor:default}
.rs-bar-label,.rs-ival-label{text-wrap:pretty}
.rs-bar-track{display:contents}
.rs-bar-track>i{display:block;justify-self:start;width:var(--w);min-width:4px;height:14px;border:1.5px solid var(--z-title)}
.rs-bar.is-strong .rs-bar-track>i{background:var(--z-title)}
.rs-val{justify-self:end;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.rs-bar[data-on] .rs-bar-label,.rs-ival[data-on] .rs-ival-label{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}

/* an estimate with its interval: a hairline track, a short ink bar, an ink dot; zero is a hairline */
.rs-ival-track{position:relative;height:28px}
.rs-ival-track::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--z-hairline-strong)}
.rs-ival-track::after{content:"";position:absolute;top:0;bottom:0;left:var(--zero);border-left:1px solid var(--z-hairline-strong)}
.rs-ival-marks{position:absolute;inset:0}
.rs-ival-range{position:absolute;top:50%;left:var(--a);width:calc(var(--b) - var(--a));height:4px;margin-top:-2px;background:var(--z-title)}
.rs-ival-dot{position:absolute;top:50%;left:var(--x);width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--z-title);box-shadow:0 0 0 3px var(--z-surface)}
.rs-ival-value{justify-self:end;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.rs-ival-value{font-weight:600}
.rs-ival-axis{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;padding-top:2px}
.rs-ival-ticks{grid-column:2;position:relative;height:20px;font-size:var(--small);font-variant-numeric:tabular-nums}
.rs-ival-ticks i{position:absolute;top:0;left:var(--x);font-style:normal;transform:translateX(-50%);white-space:nowrap}
.rs-ival-axis>span+span{display:none}
.rs-axis-note{margin:14px 0 0!important;font-size:var(--small);line-height:1.5}

/* the reading line: every sentence stacked in one cell, so its height is reserved and nothing moves */
.rs-readout{display:grid;margin:20px 0 0!important;font-size:var(--row);line-height:1.5;min-height:1.5em}
.rs-readout>span{grid-area:1/1;visibility:hidden}
.rs-readout>span[data-now]{visibility:visible}
html.js .rs-bar,html.js .rs-ival{cursor:pointer}
.rs-bar:focus-visible,.rs-ival:focus-visible{outline-offset:2px}

/* shares of a whole: one outlined strip, then the key as rows */
.rs-shares{display:flex;height:48px;border:1.5px solid var(--z-title)}
.rs-share{flex:0 0 calc(var(--f) * 1%);display:flex;align-items:center;justify-content:center;font-size:var(--small);font-weight:600;font-variant-numeric:tabular-nums;min-width:0;overflow:hidden}
.rs-share+.rs-share{border-left:1.5px solid var(--z-title)}
.rs-key{list-style:none;margin:16px 0 0!important;padding:0!important;font-size:var(--row)}
.rs-key li{display:flex;justify-content:space-between;gap:16px;margin:0;padding:8px 0!important;border-bottom:1px solid var(--z-hairline-strong)}
.rs-key li i{display:none}
.rs-key li span{font-weight:600;font-variant-numeric:tabular-nums}

/* tables: rows divided by hairlines, numbers right-aligned, intervals under their estimate */
.rs-table-wrap{overflow-x:auto}
.rs-table table{width:100%;border-collapse:collapse;font-size:var(--small);line-height:1.4}
.rs-table th{padding:0 12px 10px;font-weight:600;text-align:left;vertical-align:bottom;border-bottom:1px solid var(--z-hairline-strong)}
.rs-table td{padding:12px;vertical-align:top;border-bottom:1px solid var(--z-hairline-strong)}
.rs-table :is(th,td):first-child{padding-left:0}
.rs-table :is(th,td):last-child{padding-right:0}
.rs-table .rs-num{text-align:right;font-variant-numeric:tabular-nums}
.rs-table .rs-ci{display:block;font-variant-numeric:tabular-nums}
.rs-table td[data-repeat]{display:none}
.rs-table td i{font-style:italic}
.rs-table-note{margin:14px 0 0!important;font-size:var(--small);line-height:1.5}
.col>.rs-figure.is-wide{grid-column:1 / -1;justify-self:center;width:min(1080px,100%)}
.col>.rs-figure.is-wide{display:grid;grid-template-columns:minmax(0,1fr) min(68ch,100%) minmax(0,1fr)}
.col>.rs-figure.is-wide>*{grid-column:2;min-width:0}
.col>.rs-figure.is-wide>.rs-table-wrap{grid-column:1 / -1}

/* on a phone (and a wide table on a tablet) a table becomes records: label left, value right */
@media (max-width:599px){
  .rs-table.is-stacked :is(table,thead,tbody,tr,td){display:block}
  .rs-table.is-stacked thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .rs-table.is-stacked tr{padding:12px 0;border-bottom:1px solid var(--z-hairline-strong)}
  .rs-table.is-stacked tbody tr:first-child{border-top:1px solid var(--z-hairline-strong)}
  .rs-table.is-stacked td{display:flex;justify-content:space-between;gap:16px;padding:3px 0;border:0;text-align:right}
  .rs-table.is-stacked td::before{content:attr(data-label);flex:0 1 48%;text-align:left;font-weight:400}
  .rs-table.is-stacked td>span{flex:0 1 auto}
  .rs-table.is-stacked td:first-child,.rs-table.is-stacked td[rowspan]{display:block;text-align:left;font-weight:600;padding-bottom:6px}
  .rs-table.is-stacked td:first-child::before,.rs-table.is-stacked td[rowspan]::before{content:none}
  .rs-table.is-stacked td[rowspan] i{font-weight:400}
  .rs-table.is-stacked td[data-repeat]{display:block;text-align:left;font-weight:600;padding-bottom:6px}
  .rs-table.is-stacked td[data-repeat]::before{content:none}
  .rs-table.is-stacked td[data-repeat] i{font-weight:400}
}
/* in a very narrow pane every table becomes records, so a short table never scrolls sideways either (an exhibit's table
   stays a table: it keeps its narrow columns, then scrolls inside its own box) */
@media (max-width:299px){
  .rs-table:not(.ex-table) :is(table,thead,tbody,tr,td){display:block}
  .rs-table:not(.ex-table) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .rs-table:not(.ex-table) tr{padding:12px 0;border-bottom:1px solid var(--z-hairline-strong)}
  .rs-table:not(.ex-table) tbody tr:first-child{border-top:1px solid var(--z-hairline-strong)}
  .rs-table:not(.ex-table) td{display:flex;justify-content:space-between;gap:16px;padding:3px 0;border:0;text-align:right}
  .rs-table:not(.ex-table) td::before{content:attr(data-label);flex:0 1 48%;text-align:left;font-weight:400}
  .rs-table:not(.ex-table) td>span{flex:0 1 auto}
  .rs-table:not(.ex-table) td:first-child{display:block;text-align:left;font-weight:600;padding-bottom:6px}
  .rs-table:not(.ex-table) td:first-child::before{content:none}
}
@media (min-width:600px) and (max-width:899px){
  .rs-table.is-wide :is(table,thead,tbody,tr,td){display:block}
  .rs-table.is-wide thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .rs-table.is-wide tr{padding:12px 0;border-bottom:1px solid var(--z-hairline-strong)}
  .rs-table.is-wide tbody tr:first-child{border-top:1px solid var(--z-hairline-strong)}
  .rs-table.is-wide td{display:flex;justify-content:space-between;gap:16px;padding:3px 0;border:0;text-align:right}
  .rs-table.is-wide td::before{content:attr(data-label);flex:0 1 48%;text-align:left}
  .rs-table.is-wide td:first-child{display:block;text-align:left;font-weight:600;padding-bottom:6px}
  .rs-table.is-wide td:first-child::before{content:none}
}

/* bars and intervals on a phone: the label on its own line, then the bar and its value */
@media (max-width:599px){
  .rs-bars,.rs-ivals{grid-template-columns:minmax(0,1fr) auto;column-gap:16px}
  .rs-bar-label,.rs-ival-label{grid-column:1 / -1;margin-bottom:6px}
  .rs-bar,.rs-ival{padding:9px 0}
  .rs-ival-ticks{grid-column:1}
  .rs-ival-axis>span+span{display:block}
}

/* ============ "What this means": plain statements straight after the lead, nothing boxed ============ */
.col .ex-means{list-style:none;margin:0;padding:0}
.col .ex-means li{margin:0 0 36px;padding:0}
.col .ex-means li:last-child{margin-bottom:8px}
.col .ex-means p{margin:0}
.col .ex-means .ex-means-s{margin:0 0 10px;font-size:clamp(19px,calc(17.4px + .45vw),23px);font-weight:600;line-height:1.35;letter-spacing:-0.006em;text-wrap:pretty}

/* ============ exhibits: interactive figures, as plain and exact as the type ============
   Solid ink for the thing in question; an ink outline or the hairline tone for what it is compared with; hairline axes;
   no fills behind a plot, no boxes. Every readout and every state has its room before anything is chosen. The figure is
   its own container, so it arranges itself by its own width. */
.ex{margin:72px 0 80px;container-type:inline-size;font-size:var(--row);line-height:1.4}
.col .ex p{margin:0}
.col .ex li{margin:0;padding:0}
.col .ex .ex-title{margin:0 0 22px;font-size:var(--h3);font-weight:600;line-height:1.25;letter-spacing:-0.006em;text-wrap:balance}

/* word buttons: the chosen one in the heavier weight with a 2px ink underline that wipes in; the heavier weight's width
   is held by each button from the start, so choosing moves nothing */
.ex-controls{display:flex;flex-wrap:wrap;gap:0 clamp(14px,6cqi,28px);margin:0 0 22px}
.ex-controls button{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:6px 0 10px;font-size:var(--row);line-height:1.3;text-align:left}
.ex-controls button[aria-pressed=true]{font-weight:600}
.ex-controls button::after{content:"";position:absolute;left:0;right:0;bottom:4px;height:2px;background:var(--z-title);clip-path:inset(0 100% 0 0)}
.ex-controls button[aria-pressed=true]::after{clip-path:inset(0 0 0 0)}
.ex-controls button:focus-visible{outline-offset:2px}
/* the words and, in the same cell, the same words in the chosen weight: the cell is as wide and as tall as the heavier
   setting at any width, so a button's words that wrap in a narrow figure wrap the same whether it is chosen or not */
.ex-w{display:inline-grid}
.ex-w>span,.ex-w::after{grid-area:1 / 1}
.ex-w::after{content:attr(data-w);visibility:hidden;font-weight:600}
html:not(.js) .ex [data-controls]{display:none}
html:not(.js) .ex-use{display:none}

/* rows of marks on one scale: the label, the track, the value; on a narrow figure the label goes above its track */
.ex-lanes{display:grid;grid-template-columns:minmax(0,13em) minmax(0,1fr) auto;column-gap:20px}
.ex-stack-cell{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}
.ex-lane{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:center;min-height:44px;padding:5px 0}
/* the states' rows stacked in one cell, each as tall as its own rows: the script gives the cell the chosen state's height
   and keeps the figure's height the tallest state's by room at its foot, so a short state sits on its axis and nothing
   below the figure moves */
.ex-group{grid-column:1 / -1;grid-row:1;align-self:start;display:grid;grid-template-columns:subgrid;align-content:start;visibility:hidden}
.ex-stack-cell{height:var(--now-h,auto)}
.ex[data-room]{padding-bottom:var(--room,0px)}
html:not(.js) .ex-group:not([data-now]),html:not(.js) .ex-fixedset>div:not([data-now]){display:none}
.ex-group[data-now]{visibility:visible}
.ex-lane-label{text-wrap:pretty}
.ex-track{position:relative;height:28px}
/* the track and its axis keep a dot's radius inside the figure at each end, so a mark at the end of the scale is whole */
.ex-lanes .ex-track,.ex-lanes .ex-xaxis{margin:0 7px}
.ex-track::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--z-hairline-strong)}
.has-zero .ex-track::after{content:"";position:absolute;top:-8px;bottom:-8px;left:var(--zero);border-left:1px solid var(--z-hairline-strong)}
.ex-val{display:grid;justify-items:end;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
/* a value beside each tier of a row, each on its tier's line */
.ex-val.is-tiered{grid-template-rows:20px 20px;align-items:center}
.ex-val.is-tiered b{font-weight:600;line-height:1.2}
/* no values at all: the track takes their room */
.ex-lanes.no-val{grid-template-columns:minmax(0,13em) minmax(0,1fr)}
.ex-val>span{grid-area:1 / 1;visibility:hidden}
.ex-val>span[data-now]{visibility:visible}
.ex-axis-row,.ex-words-row{min-height:0}
.ex-xaxis{grid-column:2;position:relative;height:24px;container-type:inline-size}
.ex-words-row .ex-xwords{grid-column:2}
.ex-ticks{position:absolute;inset:0;font-size:var(--small);font-variant-numeric:tabular-nums}
.ex-ticks i{position:absolute;top:4px;left:clamp(calc(var(--w,0ch) / 2),var(--x),calc(100% - var(--w,0ch) / 2));font-style:normal;white-space:nowrap;transform:translateX(-50%)}
/* a label that would run into a neighbour in a line this narrow (ex-h<width>, set by the generator): hidden below that
   width, with or without the script, and parked at the left so a long one adds no sideways scroll; its value is in
   the table (the class twice outweighs the line's own placing) */
@container (max-width:79.98px){.ex-h80.ex-h80{visibility:hidden;left:0}}
@container (max-width:99.98px){.ex-h100.ex-h100{visibility:hidden;left:0}}
@container (max-width:119.98px){.ex-h120.ex-h120{visibility:hidden;left:0}}
@container (max-width:139.98px){.ex-h140.ex-h140{visibility:hidden;left:0}}
@container (max-width:159.98px){.ex-h160.ex-h160{visibility:hidden;left:0}}
@container (max-width:179.98px){.ex-h180.ex-h180{visibility:hidden;left:0}}
@container (max-width:199.98px){.ex-h200.ex-h200{visibility:hidden;left:0}}
@container (max-width:229.98px){.ex-h230.ex-h230{visibility:hidden;left:0}}
@container (max-width:259.98px){.ex-h260.ex-h260{visibility:hidden;left:0}}
@container (max-width:299.98px){.ex-h300.ex-h300{visibility:hidden;left:0}}
@container (max-width:339.98px){.ex-h340.ex-h340{visibility:hidden;left:0}}
@container (max-width:379.98px){.ex-h380.ex-h380{visibility:hidden;left:0}}
@container (max-width:439.98px){.ex-h440.ex-h440{visibility:hidden;left:0}}
@container (max-width:499.98px){.ex-h500.ex-h500{visibility:hidden;left:0}}
@container (max-width:579.98px){.ex-h580.ex-h580{visibility:hidden;left:0}}
@container (max-width:679.98px){.ex-h680.ex-h680{visibility:hidden;left:0}}
@container (max-width:799.98px){.ex-h800.ex-h800{visibility:hidden;left:0}}
.ex-xwords{font-size:var(--small);line-height:1.4;padding-top:2px}
.ex-key{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:14px!important;font-size:var(--small)}
.ex-key>span{display:inline-flex;align-items:center;gap:10px}
.ex-key>span>.ex-mk{position:relative;top:auto;left:auto;margin:0;flex:none}
html.js .ex-lane[data-row]{cursor:pointer}
.ex-lane[data-row][data-on] .ex-lane-label{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
@container (max-width:519px){
  .ex-lanes{grid-template-columns:minmax(0,1fr) minmax(0,max-content);column-gap:14px}
  /* a long value wraps here, so the track keeps most of a narrow figure's width */
  .ex-val{white-space:normal;max-width:min(13em,38cqi);text-align:right}
  .ex-lanes.no-val{grid-template-columns:minmax(0,1fr)}
  .ex-lane{min-height:0;padding:4px 0}
  /* the label over its track, with air under it: no line of the track (zero, a reference, a guide) rises into it */
  .ex-lane-label{grid-column:1 / -1;padding:4px 0 6px}
  .ex-xaxis{grid-column:1}
  .ex-words-row .ex-xwords{grid-column:1 / -1}
  .ex-mk.ex-guide,.ex-refline,.has-zero .ex-track::after{top:0;bottom:0}
}
/* a very narrow figure: the value goes under its track, so the track keeps the whole width */
@container (max-width:299px){
  .ex-lanes{grid-template-columns:minmax(0,1fr)}
  .ex-val{grid-column:1 / -1;justify-items:start;text-align:left;max-width:none;padding-top:2px}
  .ex-val.is-tiered{grid-template-rows:auto;justify-items:start}
}

/* a second panel on a scale of its own: beside the first on a wide figure, under it on a narrow one; each panel is its
   own container, so its rows arrange themselves by the panel's width */
.ex-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:36px 48px}
.ex-panel{container-type:inline-size;min-width:0}
.col .ex .ex-fixed{margin-top:14px;font-size:var(--small);line-height:1.5;text-wrap:pretty}

/* the marks: all placed by --x (a share of the track), moved only by translation */
.ex-mk{position:absolute;top:50%;left:var(--x)}
.ex-mk.ex-dot{width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;background:var(--z-title);box-shadow:0 0 0 3px var(--z-surface)}
.ex-mk.ex-ring{width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;border:1.5px solid var(--z-title);background:var(--z-surface)}
.ex-mk.ex-square{width:12px;height:12px;margin:-6px 0 0 -6px;border:1.5px solid var(--z-title);background:var(--z-surface)}
.ex-mk.ex-tick{width:2px;height:22px;margin:-11px 0 0 -1px;background:var(--z-title)}
.ex-mk.ex-cap{width:2px;height:16px;margin:-8px 0 0 -1px;background:var(--z-title)}
.ex-mk.ex-guide,.ex-refline{position:absolute;top:-8px;bottom:-8px;left:var(--x);width:0;margin-left:-.5px;border-left:1px solid var(--z-hairline-strong)}
.ex-mk.ex-guide{margin-top:0}
.ex-refline.is-max{margin-left:-1px}
.ex-refline.is-min{margin-left:0}
.ex-key .ex-refkey{width:0;height:16px;border-left:1px solid var(--z-hairline-strong)}
.ex-key .ex-kbar{width:16px;height:12px;background:var(--z-title)}
.ex-key .ex-kwhisker{width:18px;height:4px;background:var(--z-title)}
.ex-key .ex-klink{width:18px;height:0;border-top:2px solid var(--z-title)}
.col .ex .ex-controls-words{margin:0 0 2px;font-size:var(--small);line-height:1.4}
/* a span from --a to --b: the whole track's width, cut to its place, so a change of place is a change of cut */
.ex-span{position:absolute;left:0;right:0;top:50%;clip-path:inset(-3px calc(100% - var(--b)) -3px var(--a))}
.ex-span.ex-box{height:16px;margin-top:-8px;border-top:1.5px solid var(--z-title);border-bottom:1.5px solid var(--z-title)}
.ex-span.ex-bar{height:14px;margin-top:-7px;background:var(--z-title)}
.ex-span.ex-whisker{height:4px;margin-top:-2px;background:var(--z-title)}
/* a whisker over a solid bar: a rim of the ground above and below it, so the interval shows on the bar */
.ex-span.ex-whisker.is-over{box-shadow:0 0 0 2px var(--z-surface)}
.ex-span.ex-link{height:0;margin-top:-1px;border-top:2px solid var(--z-title)}
/* a wider interval: a 1px ink line with short end marks, drawn under the whisker of the same row */
.ex-span.ex-thin{height:0;margin-top:-.5px;border-top:1px solid var(--z-title)}
.ex-mk.ex-tcap{width:1px;height:10px;margin:-5px 0 0 -.5px;background:var(--z-title)}
.ex-key .ex-kthin{width:18px;height:0;border-top:1px solid var(--z-title)}
/* a value past the end of the scale: the marks stop at the edge and an ink arrow there points on */
.ex-mk.ex-past{width:9px;height:12px;margin:-6px 0 0 -9px;background:var(--z-title);clip-path:polygon(0 0,100% 50%,0 100%)}
.ex-mk.ex-past.is-lo{margin-left:0;clip-path:polygon(100% 0,0 50%,100% 100%)}
.ex-key .ex-kpast{width:9px;height:12px;background:var(--z-title);clip-path:polygon(0 0,100% 50%,0 100%)}
/* a row of two tiers: two marks with their intervals, one over the other, each on a hairline of its own */
.ex-track.is-tiered{height:40px}
.ex-track.is-tiered::before{content:none}
.ex-tier{position:absolute;left:0;right:0;top:0;height:50%}
.ex-tier+.ex-tier{top:50%}
.ex-tier::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--z-hairline-strong)}
/* a row set apart from the rows above it: a hairline across the figure, and its words if it has any */
.ex-apart{grid-column:1 / -1;margin-top:12px;padding:8px 0 2px;border-top:1px solid var(--z-hairline-strong);font-size:var(--small);line-height:1.4;text-wrap:pretty}
/* the lines that belong to one state, stacked in one cell so the room is the longest state's */
.ex-fixedset{display:grid}
.ex-fixedset{height:var(--now-h,auto)}
.ex-fixedset>div{grid-area:1 / 1;align-self:start;visibility:hidden}
.ex-fixedset>div[data-now]{visibility:visible}
html.mo .ex-span{transition:clip-path 420ms var(--wipe-ease)}

/* the curve: what the price said (across) against how often it happened (up), on a square */
.ex-ywords{font-size:var(--small);line-height:1.4;margin:0 0 12px!important}
.ex-plotgrid{--side:min(calc(100cqi - 2.6em - 22px),54vh,580px);display:grid;grid-template-columns:2.6em var(--side);column-gap:10px;touch-action:pan-y}
@supports (height:1svh){.ex-plotgrid{--side:min(calc(100cqi - 2.6em - 22px),54svh,580px)}}
.ex-plotgrid>:not(.ex-yticks){grid-column:2}
html.js .ex-plotgrid{cursor:pointer}
.ex-yticks{position:relative;font-size:var(--small);font-variant-numeric:tabular-nums}
.ex-yticks i{position:absolute;right:0;bottom:var(--y);font-style:normal;transform:translateY(50%)}
.ex-plot{position:relative;aspect-ratio:1 / 1;width:var(--side);border-left:1px solid var(--z-hairline-strong);border-bottom:1px solid var(--z-hairline-strong)}
.ex-plot:focus-visible,.ex-pplot:focus-visible{outline-offset:2px}
.ex-grid,.ex-ref,.ex-pts,.ex-gaps,.ex-pt,.ex-gap{position:absolute;inset:0}
.ex-gx{position:absolute;top:0;bottom:0;left:var(--x);border-left:1px dotted var(--z-hairline-strong)}
.ex-gy{position:absolute;left:0;right:0;bottom:var(--y);border-top:1px dotted var(--z-hairline-strong)}
.ex-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ex-svg line{stroke:var(--z-title);stroke-width:1px;fill:none}
.ex-line-words{position:absolute;right:var(--wr,42%);bottom:var(--wb,61%);max-width:46%;font-size:var(--small);line-height:1.3;text-align:right;text-wrap:balance}
.ex-line-words.is-below{right:auto;bottom:auto;left:var(--wl);top:var(--wt);text-align:left}
.ex-line-words.is-tl{right:auto;bottom:auto;left:2%;top:2%;text-align:left}
.ex-line-words.is-br{right:2%;bottom:3%}
/* the line's words as a key under the plot: on a small square, or where no place beside the line is clear */
.ex-key.ex-line-key{position:absolute;left:0;top:0;visibility:hidden;margin-top:10px!important}
.ex-key.ex-line-key.is-always{position:static;visibility:visible}
.ex-key .ex-kdiag{width:16px;height:16px}
.ex-curve{--dot:clamp(8px,2.1cqi,13px)}
.ex-range{position:absolute;left:var(--a);width:calc(var(--b) - var(--a));bottom:var(--y);height:2px;margin-bottom:-1px;background:var(--z-title)}
.ex-cdot{position:absolute;left:var(--x);bottom:var(--y);width:var(--dot);height:var(--dot);margin:0 0 calc(var(--dot) / -2) calc(var(--dot) / -2);border-radius:50%;border:1.5px solid var(--z-title);background:var(--z-surface)}
.ex-pt[data-on] .ex-cdot{background:var(--z-title);box-shadow:0 0 0 3px var(--z-surface)}
/* a step's interval: a short upright ink bar through its dot */
.ex-yr{position:absolute;left:var(--x);bottom:var(--lo);height:calc(var(--hi) - var(--lo));width:2px;margin-left:-1px;background:var(--z-title)}
/* a curve of several series: each drawn whole in one layer of the square, the chosen series shown */
.ex-cset{position:absolute;inset:0;visibility:hidden}
.ex-cset[data-now]{visibility:visible}
.ex-gap{visibility:hidden}
.ex-gap[data-now]{visibility:visible}
/* the chosen step's gap: a solid ink line from its dot to the lowest price of the step, which is marked as a short ink
   bar from the step's lowest to its highest price at that height (its left end touches the line). The gap carries no
   words of its own: a label floating in the plot has to dodge every point, and the readout under the plot says it. */
.ex-gap .ex-gap-line{position:absolute;left:var(--x);bottom:var(--y1);height:calc(var(--y2) - var(--y1));margin-left:-1px;border-left:2px solid var(--z-title)}
.ex-gap .ex-gap-low{position:absolute;left:var(--a);width:calc(var(--b) - var(--a));bottom:var(--yl);height:0;margin-bottom:-1px;border-top:2px solid var(--z-title)}
/* a small square: the line's words go to the corner above the line */
@container (max-width:399px){
  .ex-line-words{visibility:hidden}
  .ex-key.ex-line-key{position:static;visibility:visible}
}
.ex-xaxis.ex-xaxis{position:relative;height:24px}
.ex-plotgrid .ex-xwords{padding-top:2px}
.ex-strip{margin-top:28px}
.ex-strip-words{font-size:var(--small);line-height:1.4;margin:0 0 10px!important}
.ex-strip-box{position:relative;height:clamp(52px,13cqi,76px);border-top:1px dotted var(--z-hairline-strong);border-bottom:1px solid var(--z-hairline-strong)}
.ex-strip-bars i{position:absolute;bottom:0;left:calc(var(--a) + 1px);width:calc(var(--b) - var(--a) - 2px);height:var(--h);border:1.5px solid var(--z-title);border-bottom:0}
.ex-strip-bars i[data-on]{background:var(--z-title)}
.ex-strip-bars{position:absolute;inset:0;visibility:hidden}
.ex-strip-bars[data-now]{visibility:visible}
.ex-strip-over{margin-top:10px!important;font-size:var(--small);line-height:1.4}
div.ex-strip-over{display:grid}
.ex-strip-over>div{grid-area:1 / 1;visibility:hidden;text-wrap:pretty}
.ex-strip-over>div[data-now]{visibility:visible}

/* a path: one line over time, the chosen row's; an upright hairline at the mark with its words over the plot, level
   hairlines at the refs, a short ink tick at the foot of the plot, and the chosen point as a dot on a hairline */
.ex-pick{display:block}
.ex-pick-head{display:block;margin:6px 0 0;font-size:var(--small);font-weight:600;line-height:1.4}
.ex-pick-set{display:flex;flex-wrap:wrap;gap:0 clamp(14px,5cqi,24px)}
.ex-pick-set+.ex-pick-head{margin-top:14px}
.ex-pgrid{--side:auto;grid-template-columns:2.6em minmax(0,1fr)}
.ex-pplot{position:relative;width:100%;aspect-ratio:16 / 10;margin-top:1.7em;margin-right:12px;border-left:1px solid var(--z-hairline-strong);border-bottom:1px solid var(--z-hairline-strong);touch-action:pan-y}
@container (max-width:519px){.ex-pplot{aspect-ratio:4 / 3}}
html.js .ex-pgrid{cursor:pointer}
.ex-pgrid .ex-yticks{margin-top:1.7em}
.ex-plines,.ex-players,.ex-pl{position:absolute;inset:0}
.ex-pl{visibility:hidden}
.ex-pl[data-now]{visibility:visible}
.ex-pl path{stroke:var(--z-title);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round;fill:none}
.ex-pdot{position:absolute;left:var(--x);bottom:var(--y);width:5px;height:5px;margin:0 0 -2.5px -2.5px;border-radius:50%;background:var(--z-title)}
.ex-ptk{position:absolute;left:var(--x);bottom:0;width:2px;height:14px;margin-left:-1px;background:var(--z-title)}
.ex-pmark{position:absolute;top:0;bottom:0;left:var(--x);border-left:1px solid var(--z-hairline-strong)}
.ex-pref{position:absolute;left:0;right:0;bottom:var(--y);border-top:1px solid var(--z-hairline-strong)}
.ex-pover{position:absolute;left:0;right:0;bottom:100%;height:1.6em;font-size:var(--small);line-height:1.6em}
.ex-pmark-w{position:absolute;bottom:0;left:clamp(calc(var(--w,0ch) / 2),var(--x),calc(100% - var(--w,0ch) / 2));font-style:normal;white-space:nowrap;transform:translateX(-50%)}
.ex-pref-w{position:absolute;bottom:0;left:0;font-style:normal;white-space:nowrap}
.ex-pref-w.is-right{left:auto;right:0}
.ex-pcur{position:absolute;top:0;bottom:0;left:var(--x);border-left:1px solid var(--z-hairline-strong)}
.ex-ppt{position:absolute;left:var(--x);bottom:var(--y);width:11px;height:11px;margin:0 0 -5.5px -5.5px;border-radius:50%;background:var(--z-title);box-shadow:0 0 0 3px var(--z-surface)}
.ex-key .ex-kline{width:18px;height:0;border-top:2px solid var(--z-title)}
.ex-key .ex-kptk{width:2px;height:14px;background:var(--z-title)}
.col .ex .ex-pread{display:grid;margin:18px 0 0;font-size:var(--row);font-weight:600;line-height:1.5}
.ex-pread>span{grid-area:1 / 1;visibility:hidden;text-wrap:pretty}
.ex-pread>span[data-now]{visibility:visible}
.ex-pread+.ex-readout{margin-top:6px!important}

/* steps: one whole cut into parts; everything from the stop on is solid ink */
.col .ex .ex-headline{display:grid;margin:0 0 18px;font-size:clamp(21px,5.4cqi,34px);font-weight:700;line-height:1.15;letter-spacing:-0.02em}
.ex-headline>span{grid-area:1 / 1;visibility:hidden;text-wrap:balance}
.ex-headline>span[data-now]{visibility:visible}
.ex-whole{position:relative;height:56px}
.ex-parts,.ex-solidwrap,.ex-solid{position:absolute;inset:0}
.ex-parts{border:1.5px solid var(--z-title)}
.ex-parts i{position:absolute;top:0;bottom:0;left:var(--x);margin-left:-.75px;border-left:1.5px solid var(--z-title)}
.ex-solid{background:var(--z-title);clip-path:inset(0 0 0 var(--a))}
html.mo .ex-solid{transition:clip-path 420ms var(--wipe-ease)}
.ex-whole+.ex-xwords{margin-top:8px!important}
.ex-slider{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:0 22px;margin:0 0 18px}
.ex-slider label{padding-top:11px;font-weight:600;white-space:nowrap}
.ex-range-box{position:relative;display:block;padding-bottom:34px}
.ex-range-box input{display:block;width:100%;height:44px;margin:0;padding:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.ex-range-box input::-webkit-slider-runnable-track{height:2px;background:var(--z-title);border:0}
.ex-range-box input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;margin-top:-11px;border:0;border-radius:50%;background:var(--z-title);box-shadow:0 0 0 4px var(--z-surface)}
.ex-range-box input::-moz-range-track{height:2px;background:var(--z-title);border:0}
.ex-range-box input::-moz-range-thumb{width:24px;height:24px;border:0;border-radius:50%;background:var(--z-title);box-shadow:0 0 0 4px var(--z-surface)}
.ex-range-box input:focus-visible{outline:2px solid var(--z-title);outline-offset:2px}
.ex-stops{position:absolute;left:0;right:0;top:50px;height:22px;font-size:var(--small);white-space:nowrap;container-type:inline-size}
/* a stop's words centred on the thumb's place there, held inside the line; words that would run into a neighbour at this
   width are hidden (ex-h<width>), and the headline above the bar says the chosen stop's words in full */
.ex-stops i{position:absolute;top:0;left:clamp(calc(var(--w,0ch) / 2),calc(12px + var(--p) * (100% - 24px)),calc(100% - var(--w,0ch) / 2));font-style:normal;transform:translateX(-50%)}
@container (max-width:459px){.ex-slider{grid-template-columns:minmax(0,1fr)}.ex-slider label{padding-top:0;padding-bottom:8px}}
/* on a very narrow figure a stop's words may take two lines, centred on the stop, with their room kept */

.col .ex .ex-partkey{list-style:none;margin:14px 0 0;padding:0}
.col .ex .ex-partkey li{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:14px;align-items:center;padding:9px 0;border-bottom:1px solid var(--z-hairline-strong)}
.ex-partkey i{width:14px;height:14px;border:1.5px solid var(--z-title)}
.ex-partkey li[data-on] i{background:var(--z-title)}
.ex-partkey b{font-weight:600;font-variant-numeric:tabular-nums}

/* the sentence, the caption, the limit and the numbers */
.col .ex .ex-readout{display:grid;margin:22px 0 0;font-size:var(--row);line-height:1.5}
.ex-readout>span{grid-area:1 / 1;visibility:hidden;text-wrap:pretty}
.ex-readout>span[data-now]{visibility:visible}
.ex figcaption{margin-top:24px;font-size:var(--small);line-height:1.5;text-wrap:pretty}
.ex figcaption b,.ex-limit b{font-weight:600}
.col .ex :is(.ex-note,.ex-limit){margin-top:8px;font-size:var(--small);line-height:1.5;text-wrap:pretty}
.ex-more{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;font-size:var(--small);font-weight:600}
.ex-more:hover,.ex-more:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.ex-more-in{display:inline-grid}
.ex-more-in>span{grid-area:1 / 1}
.ex-more-in>span+span,.ex-more[aria-expanded=true] .ex-more-in>span:first-child{visibility:hidden}
.ex-more[aria-expanded=true] .ex-more-in>span+span{visibility:visible}
html:not(.js) .ex-more{display:none}
html.js .ex-data:not([data-open]){display:none}
.ex-data{margin-top:12px}
.ex-table+.ex-table{margin-top:28px}
.ex-table td:first-child{min-width:6em}
.ex-table td.ex-nw{white-space:nowrap}
/* where the whole table does not fit, the script keeps the columns the content names; where even those do not fit, the
   table scrolls inside its box and the box shows its cut edge as a hairline */
html.js .ex-table[data-narrow] .ex-x{display:none}
.ex-table .rs-table-wrap{border-right:1px solid transparent}
.ex-table .rs-table-wrap[data-cut]{border-right-color:var(--z-hairline-strong)}
/* with no script the generator's estimate of each table's widths does the same by container queries on the figure:
   ex-tw<width> drops the columns "narrow:" leaves out below that width, ex-cw<width> shows the cut edge below it */
@container (max-width:279.98px){html:not(.js) .ex-tw280[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw280 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:319.98px){html:not(.js) .ex-tw320[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw320 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:359.98px){html:not(.js) .ex-tw360[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw360 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:399.98px){html:not(.js) .ex-tw400[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw400 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:449.98px){html:not(.js) .ex-tw450[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw450 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:499.98px){html:not(.js) .ex-tw500[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw500 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:559.98px){html:not(.js) .ex-tw560[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw560 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:619.98px){html:not(.js) .ex-tw620[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw620 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:679.98px){html:not(.js) .ex-tw680[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw680 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:759.98px){html:not(.js) .ex-tw760[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw760 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:859.98px){html:not(.js) .ex-tw860[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw860 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
@container (max-width:999.98px){html:not(.js) .ex-tw1000[data-narrows] .ex-x{display:none}html:not(.js) .ex-cw1000 .rs-table-wrap{border-right-color:var(--z-hairline-strong)}}
/* what a group is made of, under the table: a heading, then one line a group */
.col .ex .ex-listhead{margin:24px 0 8px;font-size:var(--small);font-weight:600}
.col .ex .ex-list{list-style:none;margin:0;padding:0;font-size:var(--small);line-height:1.5}
.col .ex .ex-list li{padding:8px 0;border-top:1px solid var(--z-hairline-strong);text-wrap:pretty}
.ex-list b{font-weight:600}

/* a figure draws once when it arrives: its axes, then its line of reference, then its marks, each wiped from upstream */
/* the whole entrance ends within 700 ms however many rows: each row waits a share of 240 ms (--n rows, at most 70 ms
   apart) and wipes in 340 ms */
html.mo .ex :is(.ex-xaxis,.ex-yticks,.ex-grid,.ex-ref,.ex-pts,.ex-gaps,.ex-stack-cell>.ex-lane,.ex-group>.ex-lane,.ex-strip-box,.ex-parts,.ex-solidwrap,.ex-plines,.ex-players){
  clip-path:inset(-12px 100% -12px -12px);
  transition:clip-path 340ms var(--wipe-ease);
}
html.mo .ex :is(.ex-ref,.ex-plines){transition-delay:120ms}
html.mo .ex :is(.ex-pts,.ex-gaps,.ex-players){transition-delay:220ms;transition-duration:460ms}
html.mo .ex :is(.ex-stack-cell>.ex-lane,.ex-group>.ex-lane){transition-delay:calc(var(--i,0) * min(70ms,240ms / var(--n,1)) + 100ms)}
html.mo .ex .ex-strip-box{transition-delay:300ms}
html.mo .ex .ex-solidwrap{transition-delay:260ms}
html.mo .ex[data-in] :is(.ex-xaxis,.ex-yticks,.ex-grid,.ex-ref,.ex-pts,.ex-gaps,.ex-stack-cell>.ex-lane,.ex-group>.ex-lane,.ex-strip-box,.ex-parts,.ex-solidwrap,.ex-plines,.ex-players){clip-path:inset(-12px -12px -12px -12px)}
html.mo .ex-controls button::after{transition:clip-path 360ms var(--wipe-ease)}

/* ============ the reference card: the ground one step raised, beside its mark ============ */
.cite-card{
  position:absolute;z-index:20;width:min(26em,calc(100vw - 32px));
  padding:18px 20px 20px;border-radius:12px;background:var(--z-raised);
  font-size:16px;line-height:1.5;text-align:left;
}
.cite-card[hidden]{display:none}
.cite-card:focus{outline:none}
.cite-card:focus-visible{outline:2px solid var(--z-title);outline-offset:3px}
.cc-n{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:0 0 10px;font-weight:600}
.cc-x{font-weight:400;font-size:15px}
.cc-x:hover,.cc-x:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.cite-card .rs-ref-note,.cite-card .rs-ref-links{margin-top:10px}
.cite-card a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;overflow-wrap:anywhere}

/* ============ the page viewer: the ground, the page, three plain buttons ============ */
.viewer{position:fixed;inset:0;z-index:30;display:grid;grid-template-rows:var(--head) minmax(0,1fr);background:var(--z-surface)}
.viewer[hidden]{display:none}
.viewer-bar{display:flex;align-items:center;gap:24px;padding:0 var(--gutter);font-size:16px}
.viewer-bar p{margin:0 auto 0 0;font-weight:600;font-variant-numeric:tabular-nums}
.viewer-bar button{min-height:36px;white-space:nowrap}
.viewer-bar button:hover,.viewer-bar button:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.viewer-stage{display:grid;place-items:center;min-height:0;padding:0 var(--gutter) 24px}
.viewer-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;outline:1px solid var(--z-hairline-strong);outline-offset:-1px}
@media (max-width:599px){.viewer-bar{gap:16px;font-size:15px}.viewer-bar .wide{display:none}}

/* ============ arrival: a hard-edged wipe from upstream (the left), once. With script and motion only. ============ */
html.mo [data-wipe]{
  --bleed:12px;
  clip-path:inset(calc(-1*var(--bleed)) calc(100% + var(--bleed)) calc(-1*var(--bleed)) calc(-1*var(--bleed)));
  transition:clip-path var(--wipe) var(--wipe-ease);
}
html.mo .statement[data-wipe]{--bleed:.12em}
html.mo .stage :is(.line,.kicker)[data-wipe]{transition-delay:120ms}
html.mo .stage :is(.h1-sub,.title)[data-wipe]{transition-delay:240ms}
html.mo .stage .meta[data-wipe]{transition-delay:340ms}
html.mo .stage[data-in] [data-wipe],html.mo .stage:focus-within [data-wipe],html.mo [data-wipe][data-in]{
  clip-path:inset(calc(-1*var(--bleed)) calc(-1*var(--bleed)) calc(-1*var(--bleed)) calc(-1*var(--bleed)));
}
/* a figure draws once: bars and intervals open from the left, 60 ms a row */
html.mo [data-fig] :is(.rs-bar-track>i,.rs-ival-marks){
  clip-path:inset(-8px 100% -8px -8px);
  transition:clip-path var(--draw) var(--wipe-ease);transition-delay:calc(var(--i,0) * 60ms + 120ms);
}
html.mo [data-fig] .rs-ival-marks{transition-delay:calc(var(--i,0) * 60ms + 120ms)}
html.mo [data-fig] .rs-shares{clip-path:inset(-4px 100% -4px -4px);transition:clip-path var(--draw) var(--wipe-ease) 120ms}
html.mo [data-fig][data-in] :is(.rs-bar-track>i,.rs-ival-marks){clip-path:inset(-8px -8px -8px -8px)}
html.mo [data-fig][data-in] .rs-shares{clip-path:inset(-4px)}

/* the header in a narrow window, last so it outranks the header rules above */
@media (max-width:359px){.top{gap:12px}.top-links{gap:14px}.top-links a{font-size:15px}}
@media (max-width:299px){.top{gap:8px;padding:0 12px}.brand img{height:20px}.top-links{gap:10px}.top-links a{font-size:14px}}      /* a very narrow pane: the header still fits */
