/* FTI track record.
   The look follows the logo: black and white, square corners, wide
   capitals, the chequered flag. Colour is kept for meaning only: gains
   and losses. That pair is checked for colour-blind separation, and
   every coloured figure also carries a + or a minus sign. */

/* Each font comes in pieces by alphabet. A browser fetches a piece only
   if the page has letters from it: the first one covers English and
   western European languages; the others add Polish, Turkish, Vietnamese
   and (for figures and chart labels) Cyrillic. Scripts these fonts don't
   have (Arabic, Hindi, Thai, Chinese...) use the device's own font. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-vietnamese.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-vietnamese.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --ink: #0a0a0b;
  --ink-2: #4a4945;
  --ink-3: #6f6d67;
  --rule: #e3e1da;
  --rule-strong: #c5c2b9;
  --wash: #f1efe9;
  --gain: #0f9d6b;
  --loss: #e0452f;
  --gain-text: #0a7a52;
  --loss-text: #c2361f;
  --on-ink: #f6f5f1;
  --on-ink-2: #b9b7af;
  --on-ink-rule: #2e2e2c;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #0b0b0c;
    --surface: #131314;
    --ink: #f4f3ee;
    --ink-2: #b9b7af;
    --ink-3: #8f8d86;
    --rule: #262625;
    --rule-strong: #3d3d3a;
    --wash: #1a1a1b;
    --gain: #17a673;
    --loss: #ec5a42;
    --gain-text: #3ddc97;
    --loss-text: #ff7a66;
    --on-ink: #0b0b0c;
    --on-ink-2: #55534e;
    --on-ink-rule: #cfccc3;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0b0b0c;
  --surface: #131314;
  --ink: #f4f3ee;
  --ink-2: #b9b7af;
  --ink-3: #8f8d86;
  --rule: #262625;
  --rule-strong: #3d3d3a;
  --wash: #1a1a1b;
  --gain: #17a673;
  --loss: #ec5a42;
  --gain-text: #3ddc97;
  --loss-text: #ff7a66;
  --on-ink: #0b0b0c;
  --on-ink-2: #55534e;
  --on-ink-rule: #cfccc3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* A word longer than its column (German, Russian...) breaks instead of widening the page. */
  overflow-wrap: break-word;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 14px;
}
.skip:focus {
  inset-inline-start: 8px;
  top: 8px;
}

/* The chequered flag, as a strip. */
.flag {
  height: 14px;
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 14px 14px;
}

/* ---------- labels, buttons, chips ---------- */
.eyebrow,
.card h2,
.kpi dt,
table.data thead th,
.plan-tag,
.method h3,
.langs-title,
.open-figures dt {
  font: 650 11px/1.3 var(--sans);
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--ink-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  /* Room for a second line: some languages need one. */
  font: 700 12px/1.2 var(--sans);
  text-align: center;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-small {
  padding: 11px 14px;
  font-size: 11px;
}
.btn-invert {
  border-color: var(--on-ink);
  background: var(--on-ink);
  color: var(--ink);
}
.btn-invert:hover {
  background: transparent;
  color: var(--on-ink);
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 13px/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover {
  text-decoration-thickness: 2px;
}
.icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon:hover {
  border-color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.chip {
  padding: 5px 9px;
  border: 1px solid var(--rule-strong);
  font: 600 11px/1.2 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chip-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 750;
}
.chip-solid {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.pos {
  color: var(--gain-text);
}
.neg {
  color: var(--loss-text);
}
.sub {
  color: var(--ink-3);
  font-weight: 400;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .logo {
  height: 34px;
  width: auto;
}
.brand span {
  font: 750 10px/1.25 var(--sans);
  font-stretch: 120%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.top nav {
  display: flex;
  gap: 24px;
  margin-inline-start: auto;
}
.top nav a {
  font: 600 12px/1 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}
.top nav a:hover,
.top nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- drop-down menus: pages (small screens) and languages ---------- */
.drop {
  position: relative;
}
.drop > summary {
  list-style: none;
}
.drop > summary::-webkit-details-marker {
  display: none;
}
.drop[open] > summary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.icon-wide {
  grid-auto-flow: column;
  gap: 6px;
  width: auto;
  padding: 0 10px;
  font: 700 11px/1 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.1em;
}
.drop-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.16);
}
.drop-langs {
  grid-template-columns: 1fr 1fr;
  min-width: 320px;
}
.drop-panel a {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}
.drop-panel a:hover {
  background: var(--wash);
}
.drop-panel a[aria-current] {
  background: var(--ink);
  color: var(--on-ink);
}
/* The page menu is for screens too narrow for the row of links. */
.drop-menu {
  display: none;
}

/* Offered to a visitor whose browser asks for another language we have. */
.lang-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
}
.lang-hint a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}
.lang-hint button {
  padding: 2px 8px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lang-hint :focus-visible {
  outline-color: var(--on-ink);
}

/* ---------- hero ---------- */
.hero {
  padding: 44px 0 36px;
}
.status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gain);
  box-shadow: 0 0 0 0 var(--gain);
  animation: pulse 2.4s ease-out infinite;
}
.pulse.idle {
  background: var(--ink-3);
  animation: none;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gain) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}
h1 {
  margin-top: 18px;
  font: 800 clamp(2.1rem, 5.3vw, 4.1rem) / 0.96 var(--sans);
  font-stretch: 125%;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 span {
  display: block;
  color: var(--ink-3);
}
.lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- layout blocks and cards ---------- */
.block {
  max-width: var(--wrap);
  margin: 0 auto 24px;
  padding: 0 var(--gutter);
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}
.chart-card {
  display: flex;
  flex-direction: column;
}
.chart-card .chart-wrap {
  flex: 1 1 auto;
  min-height: 250px;
}
.card {
  min-width: 0;
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}
.card h2 {
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}
.card-head h2 {
  margin-bottom: 0;
}
.card-head .caption {
  margin-top: 6px;
}
.caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}
.empty {
  padding: 28px 0;
  color: var(--ink-3);
  font-size: 14px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  border: 1px solid var(--rule-strong);
}
.seg button {
  padding: 8px 12px;
  border: 0;
  border-inline-start: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink-2);
  font: 600 11px/1 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.seg button:first-child {
  border-inline-start: 0;
}
.seg button:hover {
  color: var(--ink);
  background: var(--wash);
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--on-ink);
}
.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field select {
  padding: 7px 10px;
  padding-inline-end: 26px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 500 13px/1.2 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- the headline card ---------- */
.result .figure {
  margin-top: 10px;
  font: 700 clamp(3.4rem, 6vw, 4.6rem) / 1 var(--sans);
  font-stretch: 96%;
  letter-spacing: -0.03em;
}
.figure-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px -24px -24px;
  border-top: 1px solid var(--rule);
}
.kpi {
  min-width: 0;
  padding: 16px;
  padding-inline-start: 24px;
  border-bottom: 1px solid var(--rule);
}
.kpi:nth-child(odd) {
  border-inline-end: 1px solid var(--rule);
}
.kpi:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.kpi dt {
  color: var(--ink-3);
  font-size: 10px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.kpi dd {
  margin-top: 7px;
  font: 650 1.375rem/1.15 var(--sans);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.kpi dd .slash {
  color: var(--ink-3);
  font-weight: 400;
}
.kpi:nth-child(6) dd {
  font-size: 1.0625rem;
  line-height: 1.5;
}
.kpi p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-3);
}

/* ---------- charts ---------- */
.chart-wrap {
  min-height: 120px;
}
.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  --series: var(--ink);
}
.chart.tone-loss {
  --series: var(--loss);
}
.chart:focus-visible {
  outline-offset: 4px;
}
.chart .grid line {
  stroke: var(--rule);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.chart .grid line.zero {
  stroke: var(--rule-strong);
}
.chart .axis text,
.chart .tick {
  font: 400 11px var(--mono);
  fill: var(--ink-3);
}
.chart .line {
  fill: none;
  stroke: var(--series);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .area {
  fill: var(--series);
  opacity: 0.08;
}
.chart .band {
  fill: var(--series);
  opacity: 0.16;
}
.chart .dot {
  fill: var(--series);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart .cross {
  stroke: var(--ink-3);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.chart .end-label {
  font: 600 12px var(--mono);
  fill: var(--ink);
}
.chart .bar.pos {
  fill: var(--gain);
}
.chart .bar.neg {
  fill: var(--loss);
}
.chart .value {
  font: 600 11px var(--mono);
  fill: var(--ink-2);
}
.chart .hit {
  fill: transparent;
  cursor: default;
}
.chart .col:hover .bar,
.chart .col:focus-within .bar {
  opacity: 0.78;
}
.chart .hit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12px;
  color: var(--ink-2);
}
.legend:empty {
  display: none;
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.key-line {
  width: 16px;
  height: 2px;
  background: var(--ink);
}
.key-band {
  width: 16px;
  height: 9px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
}
.tip {
  position: fixed;
  z-index: 50;
  max-width: 260px;
  padding: 9px 11px;
  background: var(--ink);
  color: var(--on-ink);
  font: 400 12px/1.5 var(--mono);
  pointer-events: none;
  white-space: nowrap;
}
.tip b {
  display: block;
  font-weight: 700;
  font-size: 13px;
}
.tip span {
  color: var(--on-ink-2);
}

/* ---------- tables ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}
.table-scroll.tall {
  max-height: 340px;
  overflow-y: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th,
table.data td {
  padding: 10px 0;
  padding-inline-end: 12px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  white-space: nowrap;
  vertical-align: baseline;
}
table.data th:last-child,
table.data td:last-child {
  padding-inline-end: 0;
}
table.data thead th {
  padding-top: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-3);
  font-size: 10px;
}
.table-scroll.tall table.data thead th {
  position: sticky;
  top: 0;
  padding-top: 8px;
  background: var(--surface);
}
table.data tbody th {
  font-weight: 600;
}
table.data tbody tr:last-child > * {
  border-bottom: 0;
}
table.data .n,
table.data .d {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
table.data .n {
  text-align: end;
}
table.data .d {
  color: var(--ink-2);
}
table.data thead .n {
  font-family: var(--sans);
  font-size: 10px;
}
table.data .prev .sub {
  font-family: var(--sans);
  font-size: 12px;
}
table.data tbody tr:hover > * {
  background: var(--wash);
}
.side {
  font: 700 10px/1 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.side::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-inline-end: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.side.buy::before {
  border-bottom: 6px solid var(--ink);
}
.side.sell::before {
  border-top: 6px solid var(--ink);
}
table.symbols .barcell {
  width: 32%;
  min-width: 120px;
  padding-inline-start: 16px;
}
.hbar {
  display: block;
  width: 100%;
  height: 8px;
}
.hbar line {
  stroke: var(--rule-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hbar.pos rect {
  fill: var(--gain);
}
.hbar.neg rect {
  fill: var(--loss);
}
table.symbols .toggle td {
  padding: 12px 0;
  white-space: normal;
}
table.symbols .toggle tr:hover > * {
  background: none;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}
.pager:empty {
  display: none;
}
.pager div {
  display: flex;
  gap: 8px;
}
.pager button {
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font: 600 11px/1 var(--sans);
  font-stretch: 108%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.pager button:hover:not(:disabled) {
  border-color: var(--ink);
}
.pager button:disabled {
  color: var(--ink-3);
  opacity: 0.5;
  cursor: default;
}

/* ---------- statistics ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
.stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.stats > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.stats dt {
  font-size: 14px;
  color: var(--ink-2);
}
.stats dd {
  text-align: end;
  font: 500 13px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}
.stats dd .sub {
  display: block;
  font-size: 11.5px;
}

/* ---------- open trades ---------- */
.locked {
  background: var(--wash);
}
.locked > p {
  margin: 16px 0 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.open-figures {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 36px;
}
.open-figures dt {
  color: var(--ink-3);
  font-size: 10px;
}
.open-figures dd {
  margin-top: 6px;
  font: 650 1.5rem/1.2 var(--sans);
  letter-spacing: -0.01em;
}
.open-figures dd .unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.open-figures dd.small {
  font: 500 13px/2.2 var(--mono);
  letter-spacing: 0;
}

/* ---------- join ---------- */
.join {
  margin: 56px 0;
  padding: 64px 0 60px;
  background: var(--ink);
  color: var(--on-ink);
}
.join .eyebrow {
  color: var(--on-ink-2);
}
.join h2 {
  margin-top: 12px;
  font: 800 clamp(2rem, 4.4vw, 3.4rem) / 0.96 var(--sans);
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.join .lede {
  color: var(--on-ink-2);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--on-ink-rule);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-inline-start: 1px solid var(--on-ink-rule);
}
.plan:first-child {
  border-inline-start: 0;
}
.plan-tag {
  color: var(--on-ink-2);
}
.plan h3 {
  margin-top: 14px;
  font: 700 1.25rem/1.2 var(--sans);
  font-stretch: 104%;
}
.plan-price {
  margin-top: 12px;
  font: 750 2.75rem/1 var(--sans);
  letter-spacing: -0.02em;
}
.plan-price span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--on-ink-2);
}
.plan > p:not(.plan-tag):not(.plan-price) {
  margin: 14px 0 22px;
  font-size: 15px;
  color: var(--on-ink-2);
}
.plan .btn {
  margin-top: auto;
}
.btn-invert-ghost {
  border-color: var(--on-ink);
  background: transparent;
  color: var(--on-ink);
}
.btn-invert-ghost:hover {
  background: var(--on-ink);
  color: var(--ink);
}
.copy-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 22px 24px;
  border: 1px solid var(--on-ink-rule);
  border-top: 0;
}
.copy-strip > div {
  flex: 1 1 420px;
  max-width: 78ch;
}
.copy-strip p:not(.plan-tag) {
  margin-top: 8px;
  font-size: 15px;
  color: var(--on-ink-2);
}
.langs-title {
  margin-top: 40px;
  color: var(--on-ink-2);
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.langs a {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--on-ink-rule);
  font-size: 14px;
  text-decoration: none;
}
.langs a:hover {
  border-color: var(--on-ink);
}
.join :focus-visible {
  outline-color: var(--on-ink);
}

/* ---------- the links page ---------- */
.narrow {
  max-width: 760px;
}
.links-hero {
  padding-bottom: 30px;
}
.linklist {
  display: grid;
  gap: 10px;
}
.linkrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'tag arrow' 'title arrow';
  align-items: center;
  gap: 5px 16px;
  padding: 15px 18px 16px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.linkrow .plan-tag {
  grid-area: tag;
  color: var(--ink-3);
}
.linkrow-title {
  grid-area: title;
  font: 650 1.0625rem/1.3 var(--sans);
  overflow-wrap: anywhere;
}
.linkrow .arrow {
  grid-area: arrow;
}
/* Our own two come first, filled in; the rest are outlined. */
.linklist li:nth-child(-n + 2) .linkrow,
.linkrow:hover {
  background: var(--ink);
  color: var(--on-ink);
}
.linklist li:nth-child(-n + 2) .linkrow .plan-tag,
.linkrow:hover .plan-tag {
  color: var(--on-ink-2);
}
.linklist li:nth-child(-n + 2) .linkrow:hover {
  background: var(--surface);
  color: var(--ink);
}
.linklist li:nth-child(-n + 2) .linkrow:hover .plan-tag {
  color: var(--ink-3);
}
.links-langs {
  margin: 40px 0 24px;
  padding: 36px 0 40px;
}
.join h2.langs-title {
  margin-top: 0;
  font: 650 11px/1.3 var(--sans);
  font-stretch: 112%;
  letter-spacing: 0.14em;
}
.narrow .risk {
  margin-top: 0;
}

/* ---------- method, footer ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 32px;
}
.method h3 {
  margin-bottom: 8px;
  color: var(--ink);
}
.method-grid p {
  font-size: 14px;
  color: var(--ink-2);
}
.risk {
  margin-top: 20px;
  padding: 16px 24px;
  border: 1px solid var(--rule-strong);
  font-size: 13px;
  color: var(--ink-2);
}
.foot {
  margin-top: 56px;
}
.foot .wrap {
  padding-top: 8px;
  padding-bottom: 36px;
  font-size: 13px;
  color: var(--ink-3);
}
.logo-foot {
  display: block;
  height: 76px;
  width: auto;
  margin-bottom: 18px;
  color: var(--ink);
}
.foot p + p {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------- smaller screens ---------- */
/* The header's links give way to the menu button before the longest
   languages (Turkish, Spanish, Ukrainian) run out of room for them. */
@media (max-width: 1240px) {
  .top nav {
    display: none;
  }
  .top-actions {
    margin-inline-start: auto;
  }
  .drop-menu {
    display: block;
  }
}
@media (max-width: 1080px) {
  .method-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 960px) {
  .board,
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan {
    border-inline-start: 0;
    border-top: 1px solid var(--on-ink-rule);
  }
  .plan:first-child {
    border-top: 0;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .card {
    padding: 18px 16px 20px;
  }
  .kpis {
    margin: 20px -16px -20px;
  }
  .kpi {
    padding: 14px 12px;
    padding-inline-start: 16px;
  }
  .kpi dd {
    font-size: 1.1875rem;
  }
  .kpi:nth-child(6) dd {
    font-size: 0.9375rem;
  }
  .table-scroll {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div:nth-last-child(2) {
    border-bottom: 1px solid var(--rule);
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .open-figures {
    grid-template-columns: 1fr 1fr;
  }
  .brand span {
    display: none;
  }
  .top .wrap {
    position: relative;
    gap: 12px;
  }
  /* On a phone a menu opens across the page, under the header. */
  .drop {
    position: static;
  }
  .drop-panel {
    inset-inline: var(--gutter);
    min-width: 0;
  }
  .join {
    padding: 48px 0;
  }
  .actions .btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 460px) {
  /* Three controls and a button don't fit beside the logo; the same button is the first thing under the header. */
  .top-cta {
    display: none;
  }
  /* Longer words in some languages: give the switches less padding before they wrap. */
  .seg button {
    padding: 8px 8px;
    letter-spacing: 0.06em;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse {
    animation: none;
  }
  .btn,
  .linkrow {
    transition: none;
  }
}
@media print {
  .top,
  .lang-hint,
  .actions,
  .controls,
  .join,
  .tip,
  .pager,
  .flag {
    display: none !important;
  }
  .card {
    break-inside: avoid;
  }
}

/* ---------- languages ---------- */
/* Right-to-left (Arabic, Persian): the layout mirrors by itself, because
   the rules above say start and end, not left and right. Charts don't
   mirror: time runs left to right everywhere. */
svg.chart,
.hbar {
  direction: ltr;
}
[dir='rtl'] .arrow {
  transform: scaleX(-1);
}
/* Scripts without capitals: the wide-spaced capital look of the labels
   doesn't exist in them, and spacing letters apart breaks Arabic and
   Indic words. They get plain, slightly larger labels and more room
   between lines. (The brand and anything marked as English keep theirs.) */
:lang(ar),
:lang(fa),
:lang(hi),
:lang(bn),
:lang(th),
:lang(zh),
:lang(ja),
:lang(ko) {
  letter-spacing: 0 !important;
}
:is(.eyebrow, .card h2, .kpi dt, table.data thead th, .plan-tag, .method h3, .langs-title, .open-figures dt, .chip, .field, .seg button, .side, .top nav a):is(:lang(ar), :lang(fa), :lang(hi), :lang(bn), :lang(th), :lang(zh), :lang(ja), :lang(ko)) {
  font-size: 12.5px;
  line-height: 1.5;
}
.btn:is(:lang(ar), :lang(fa), :lang(hi), :lang(bn), :lang(th), :lang(zh), :lang(ja), :lang(ko)) {
  font-size: 13.5px;
  line-height: 1.5;
}
:is(h1, .join h2):is(:lang(ar), :lang(fa), :lang(hi), :lang(bn), :lang(th)) {
  line-height: 1.3;
}
:is(h1, .join h2):is(:lang(zh), :lang(ja), :lang(ko), :lang(vi)) {
  line-height: 1.16;
}
body:is(:lang(ar), :lang(fa), :lang(hi), :lang(bn), :lang(th)) {
  line-height: 1.7;
}
