.mono{font-family:var(--mono);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.serif{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.01em}
.ink2{color:var(--ink-2)}.ink3{color:var(--ink-3)}.acc{color:var(--accent)}.up{color:var(--up)}.dn{color:var(--down)}.warn{color:var(--warn)}
.ambient{position:absolute;inset:0;pointer-events:none;background:radial-gradient(900px 600px at 12% -8%,rgba(82,227,206,.10),transparent 70%),radial-gradient(800px 520px at 100% 100%,rgba(245,181,68,.05),transparent 70%)}
.grain{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:.06;mix-blend-mode:overlay;background:url(/img/grain.svg)}
.card{background:linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-card) 100%);border:1px solid rgba(255,255,255,.06);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.4),0 12px 32px -18px rgba(0,0,0,.6);transition:transform .2s var(--ease),border-color .2s,opacity .2s}
.hov:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.12)}
.glass{background:linear-gradient(180deg,rgba(38,45,52,.72),rgba(20,24,28,.86));backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border:1px solid rgba(255,255,255,.08);border-radius:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 1px 2px rgba(0,0,0,.5),0 28px 60px -16px rgba(0,0,0,.75)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 20px;border-radius:999px;font:500 15px/1 var(--font);text-decoration:none;cursor:pointer;border:0;white-space:nowrap;transition:transform .12s,filter .12s,box-shadow .2s}
.btn-p{color:var(--ink-on-accent);background:linear-gradient(180deg,rgb(134,243,226),rgb(63,203,182));box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 0 0 1px rgba(82,227,206,.55),0 8px 28px -6px rgba(82,227,206,.55),0 0 70px -12px rgba(82,227,206,.5)}
.btn-p:hover{color:var(--ink-on-accent);filter:brightness(1.07);transform:translateY(-1px)}
.btn-e{color:var(--ink);background:linear-gradient(180deg,rgb(57,64,71),rgb(34,39,44));box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 1px 2px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.55)}
.btn-e:hover{color:rgb(255,255,255);filter:brightness(1.12)}
.btn-g{color:var(--ink-2);background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.btn-g:hover{color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
.bdg{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font:500 12px/1 var(--font);white-space:nowrap}
.bdg-m{color:var(--accent);background:rgba(82,227,206,.10);box-shadow:inset 0 0 0 1px rgba(82,227,206,.32)}
.bdg-w{color:var(--warn);background:rgba(245,181,68,.10);box-shadow:inset 0 0 0 1px rgba(245,181,68,.32)}
.bdg-a{color:rgb(195,205,214);background:rgba(255,255,255,.02);border:1px dashed rgba(166,178,189,.5)}
.bdg-n{color:var(--ink-2);background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.09)}
.eyebrow{font:500 12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
/* A STATUS (spec 2026-09-27 §2): an emergency, a caution, all clear, off.
 * Always this badge, written by TRX.status.badge - a shape and a word in
 * ink on a soft wash of the state, the shape in the state colour - so a
 * status can never be read as a price direction. The status tokens are
 * used here and on the surfaces designsystem.test.js names, nowhere else. */
.st{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 8px;border-radius:999px;font:600 11px/1 var(--font);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--ink);background:var(--st-off-soft)}
.st i{font-style:normal;color:var(--st-off)}
.st[data-st="ok"]{background:var(--st-ok-soft)}.st[data-st="ok"] i{color:var(--st-ok)}
.st[data-st="warn"]{background:var(--st-warn-soft)}.st[data-st="warn"] i{color:var(--st-warn)}
.st[data-st="bad"]{background:var(--st-bad-soft)}.st[data-st="bad"] i{color:var(--st-bad)}
/* A badge that opens a line of text (a failure and its reason, a breach and
 * its sentence) sits on the text's line with a little room after it. */
:is(p,span,small,div,b) > .st:first-child{margin-right:5px;vertical-align:1px}
/* A CATEGORY (§4): what kind of thing it is, never whether it is good.
 * [data-hue="<key>"] (TRX.hues) sets --hue on any element, so a dot, a
 * chip's tint or a header can all read the one value; .hue is the dot. */
.hue{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:var(--hue,var(--ink-3))}
[data-hue="rates"]{--hue:var(--c-rates)}[data-hue="fx"]{--hue:var(--c-fx)}[data-hue="metals"]{--hue:var(--c-metals)}
[data-hue="energy"]{--hue:var(--c-energy)}[data-hue="indices"]{--hue:var(--c-indices)}[data-hue="crypto"]{--hue:var(--c-crypto)}
/* A market tag (the Calendar, the Overview wire): the market's name in its
 * hue, a 45% edge and a 12% ground. "All markets" has no hue - it is every
 * kind at once - and keeps the neutral look. A tag is a name, never a value. */
.mtag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;font:500 12px/1 var(--font);color:var(--ink-2);white-space:nowrap;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--line)}
.mtag[data-hue]{color:var(--hue);background:color-mix(in srgb,var(--hue) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hue) 45%,transparent)}
.h2{margin:0;font-weight:600;font-size:46px;line-height:1.06;letter-spacing:-.035em}
.ink-grad{background:linear-gradient(180deg,rgb(255,255,255) 10%,rgb(154,167,178) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.acc-grad{background:linear-gradient(180deg,rgb(154,246,232),rgb(60,200,179));-webkit-background-clip:text;background-clip:text;color:transparent}
.track{height:6px;border-radius:99px;background:var(--bg-pop);position:relative}
.fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:linear-gradient(90deg,var(--accent-deep),var(--accent));box-shadow:0 0 14px -2px rgba(82,227,206,.6);animation:fillin 1.2s var(--ease) both}
.knob{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 3px rgba(82,227,206,.25),0 0 12px rgba(82,227,206,.8)}
/* A positioning percentile - where the market's book ranks against its own
 * stored history, in one window - as Deep dive's Positioning card and the
 * COT page both draw it: one component, so one reading has one look.
 * NEUTRAL, NOT TEAL. A percentile describes the data's own history; it is
 * not an edge Tradox measured (spec 11), so there is no fill and the knob
 * is ink with no glow. Faint ticks at the 10th and 90th, where "usual"
 * ends (TRX.cotmodel.heat); a reading at or past either is an extreme and
 * its value is tinted as a caution - crowded is not a direction, so never
 * red or green. */
.pc{display:grid;grid-template-columns:84px minmax(0,1fr) 48px;gap:12px;align-items:center;height:28px;font-size:13px}
.pc__t{display:block}
.pc__tick{position:absolute;top:-3px;width:1px;height:12px;background:color-mix(in srgb,var(--ink) 25%,transparent)}
.pc .knob{background:var(--ink-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.pc__v{justify-self:end;padding:1px 6px;border-radius:6px}
.pc[data-heat="lo"] .pc__v,.pc[data-heat="hi"] .pc__v{background:var(--warn-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--warn) 32%,transparent)}
.pc[data-heat="lo"] .knob,.pc[data-heat="hi"] .knob{background:var(--ink)}
.pc[data-heat="none"] .pc__v{color:var(--ink-3)}
@media (min-width:720px){.pc{grid-template-columns:92px minmax(0,1fr) 52px}}
.seg{display:inline-flex;padding:3px;gap:2px;border-radius:12px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.seg a,.seg button{height:30px;padding:0 12px;border-radius:9px;display:inline-flex;align-items:center;font:500 13px/1 var(--font);color:var(--ink-2);text-decoration:none;background:none;border:0;cursor:pointer;white-space:nowrap}
.seg a:hover,.seg button:hover{color:var(--ink)}
.seg .on{color:var(--ink);background:linear-gradient(180deg,rgb(38,45,52),rgb(26,31,36));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 1px 2px rgba(0,0,0,.5)}
.chip{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:999px;font:500 12.5px/1 var(--font);color:var(--ink-2);background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);border:0;cursor:pointer;white-space:nowrap;transition:opacity .2s}
.chip b{font-weight:500;color:var(--ink)}
.chip.on{color:var(--ink);background:rgba(82,227,206,.10);box-shadow:inset 0 0 0 1px rgba(82,227,206,.38)}
.row{display:flex;align-items:center}
.lbl{font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.ghost{font-family:var(--mono);font-weight:200;color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.10);letter-spacing:-.04em;line-height:.8}
/* The measured funnel - how many relationships survive each filter - drawn
 * on the landing page and on the Method page, which makes the same argument
 * at greater length. One row shape rather than two keeps a reader from
 * meeting a subtly different chart the second time they see the claim. */
.funnel{display:flex;flex-direction:column;gap:22px}
.funnel-row{display:grid;grid-template-columns:104px minmax(0,1fr);gap:16px;align-items:center}
.funnel-row .ghost{font-size:60px}
@media (min-width:720px){.funnel-row{grid-template-columns:150px minmax(0,1fr);gap:22px}.funnel-row .ghost{font-size:96px}}
/* Reading size - a 10px track and a 14.5px caption - and the zero row's
 * accent, the same on both pages and styled here rather than inline twice. */
.funnel-row--read .track{height:10px}
.funnel-row__cap{font-size:14.5px;margin-top:10px}
/* A name or an expression in a caption keeps to one line: "q = / 0.10" broke inside it. */
.funnel-row__cap .nw{white-space:nowrap}
.funnel-row--zero .ghost{-webkit-text-stroke-color:var(--accent-glow)}
.funnel-row--zero .track{box-shadow:inset 0 0 0 1px rgba(82,227,206,.3)}
/* The day the funnel's figures were measured: the server fills it with the
 * figures (app/seo.py), so the date and the numbers cannot part company. */
.funnel-asof{font-size:12px}
.rise{animation:rise .6s var(--ease) both}
.spark-glow{filter:blur(3px);opacity:.45}
.zl{position:absolute;left:0;transform:translateY(-50%);font:500 12px/1 var(--mono);padding:4px 6px;border-radius:6px;white-space:nowrap}
@keyframes fillin{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes drift{0%{transform:scale(1.25) rotate(0deg)}50%{transform:scale(1.42) rotate(8deg) translate(-2%,1.5%)}100%{transform:scale(1.25) rotate(0deg)}}
@keyframes sweep{0%{transform:translateX(-80%) rotate(16deg);opacity:0}25%{opacity:1}100%{transform:translateX(420%) rotate(16deg);opacity:0}}
@keyframes pop{from{opacity:0;transform:translateY(-4px) scale(.96)}to{opacity:1;transform:none}}
/* THE LASER SWEEP (spec 2026-09-27 §5): one travelling highlight along a
 * laser line - the first background layer of a line drawn as two - from
 * off its left end to off its right end. Every use runs it once and stops
 * (designsystem.test.js); nothing loops. */
@keyframes laser-sweep{from{background-position:-40% 0,0 0}to{background-position:140% 0,0 0}}
/* Motion off: every animation and transition, on every element AND on the
 * ::before/::after the lasers are drawn with - `*` alone matches neither -
 * so the lines stay, static, and nothing sweeps. */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* The popover (TRX.popover, web/js/popover.js): one glass panel every
 * measured number opens to show its working. Positioned with `left`/`top`
 * in JS (place() decides the number, this file only decides the look), so
 * the only layout this stylesheet owns is the panel's own shape and the
 * hairlines between its rows - never its position. */
.pop{position:fixed;z-index:55;width:340px;max-width:calc(100vw - 24px);padding:18px 20px;display:flex;flex-direction:column;animation:pop .32s var(--spring) both}
.pop__head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.pop__title{font-size:15px;font-weight:600;color:var(--ink)}
/* The x is an 11x18 glyph; its hit area is a 40x40 square centred on it (a
 * thumb's target, measure_pages' tap check), drawn by nothing. It reaches
 * 14.5px past the glyph, into the panel's 20px padding on the right and the
 * head's 16px gap on the left, so it never lies over the title. */
.pop__close{position:relative;flex:none;background:none;border:0;padding:0;color:var(--ink-2);font-size:18px;line-height:1;cursor:pointer}
.pop__close::after{content:'';position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}
.pop__close:hover{color:var(--ink)}
.pop__body{display:flex;flex-direction:column;overscroll-behavior:contain}
/* A capped panel's body scrolls; without this its rows shrank to fit the
 * cap first (a flex item's minimum is its content, not its height), so a
 * mildly capped panel had squeezed rows and nothing to scroll. */
.pop__body>*{flex-shrink:0}
/* A capped body scrolls, and its edge would cut the one ring off a control
 * that spans it (a market row); inside a body the ring is drawn inside the
 * control. The body itself, when it is the tab stop, keeps the outer ring. */
.pop__body :focus-visible{outline-offset:-2px}
.pop__row{justify-content:space-between;height:38px;font-size:13.5px;border-bottom:1px solid var(--line-soft)}
.pop__row:last-child{border-bottom:0}
.pop__row>.mono{text-align:right}
.pop__row--long{display:block;height:auto;padding:11px 0;line-height:1.5;color:var(--ink)}
.pop--wide{width:440px}
/* A list of sentences in a popover: the "Why this read?" inputs, the
 * latest alerts, the drawing tools. Built by the caller as `content`. */
.pop__list{display:flex;flex-direction:column}
.pop__item{padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:13px;line-height:1.5;color:var(--ink-2)}
.pop__item:last-child{border-bottom:0}
.pop__item b{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;color:var(--ink);margin-bottom:3px}
.pop__item .bdg{height:20px;font-size:11px;padding:0 8px}
/* An input's sentence and basis, two lines until "more" opens the rest. */
.pop__clip{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.pop__clip.is-open{display:block;-webkit-line-clamp:unset;overflow:visible}
.pop__side{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}
/* "more" is a 29x12 word; its hit area is a 40x40 square centred on it,
 * drawn by nothing. It reaches 5.5px either side (the badge after it is
 * 10px away, and no control) and 14px up and down, inside its own item. */
.pop__more{position:relative;border:0;background:none;padding:0;font:500 12px/1 var(--font);color:var(--ink-2);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pop__more::after{content:'';position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}
.pop__more:hover{color:var(--ink)}
.pop__note{font-size:12.5px;margin:12px 0 14px}
.pop__action{width:100%;height:40px;border-radius:12px;font-size:14px}
/* Every element the popover names in its `dim` list - its anchor's siblings -
 * fades to a third of its opacity while the popover is open, so the reader's
 * eye is pointed at the one number being explained rather than the whole
 * row it came from. */
.is-dimmed{opacity:.35;transition:opacity var(--t-ui) var(--ease)}

/* The page frame every new page uses: token background, token ink, and the
 * ambient light that makes the dark read as depth rather than as off. */
.trx-page { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; }
/* :where() keeps the page's link colour at plain-`a` weight, as the board had
 * it. At `.trx-page a` weight it outranked `.btn-p` and `.tile`, painting
 * teal text on the teal button and turning every tile's text teal. */
:where(.trx-page) a { color: var(--accent); }
:where(.trx-page) a:hover { color: rgb(143, 243, 228); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Read by a screen reader, drawn for nobody: Overview's h1 (#viewh1, renamed
 * by the view switch) and the verdict bar's announcer. Here rather than in
 * app.css so every page has it. Out of flow, so it takes no gap and no cell. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
           overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* THE ONE FOCUS RING, for every control on every page - a link, a button,
 * a fold-out note's summary, a field, and the scrolling panels the browser
 * makes focusable itself. Teal because a focused control is the active
 * control (spec 11). Keyboard focus only (:focus-visible): a click does not
 * light it, except in a text field, where the browser always shows where
 * typing goes. A rule for one control is only ever an exception to this -
 * where a box would clip the ring - never a second ring. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
