/* Geist Sans and Geist Mono 1.7.2 by Vercel, SIL Open Font License 1.1 (OFL.txt).
   The type roles in src/form/structure.form.json name these families. */
@font-face {
  font-family: "Geist Sans";
  src: url("fonts/Geist-Variable.a369fcf5.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.fba8f577.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* The landing-local tokens (LP-D015, LP-D016) live in landing-tokens.css, which the futures decoder also uses. */
/*
 * Landing-local tokens. The marketing layer is monotone (LP-D015): neutral
 * surfaces and ink only, no accent hue. Product scenes keep the product
 * palette from @structure/tokens (LP-D016). Light values sit on the product's
 * paper neutrals, dark values on its near-black, so a scene never looks
 * pasted onto a foreign page.
 *
 * Tokens only, no rules: landing.css imports it, and the futures decoder
 * (tools/futures-decoder/scripts/build.ts) puts it into its own stylesheet.
 */
:root,
[data-st-theme="light"] {
  color-scheme: light;
  --lp-canvas: #fbfbf9;
  --lp-canvas-raised: #fefefc;
  --lp-well: #f4f3ef;
  --lp-ink: #121417;
  --lp-ink-2: #4a4c50;
  --lp-ink-3: #7c7e81;
  --lp-ink-4: #a7a8a8;
  --lp-rule: #e6e5e1;
  --lp-rule-2: #d4d3cf;
  --lp-rule-strong: #9d9e9c;
  --lp-hatch: rgba(18, 20, 23, 0.11);
  --lp-dot: rgba(18, 20, 23, 0.16);
  --lp-inverse-canvas: #0b0c0e;
  --lp-inverse-ink: #eceef0;
  --lp-shot-shadow:
    0 1px 0 rgba(18, 20, 23, 0.04),
    0 24px 48px -24px rgba(18, 20, 23, 0.22),
    0 64px 96px -48px rgba(18, 20, 23, 0.18);
  --lp-overlay-shadow:
    0 1px 0 rgba(18, 20, 23, 0.06),
    0 18px 40px -12px rgba(18, 20, 23, 0.28);
}

[data-st-theme="dark"] {
  color-scheme: dark;
  --lp-canvas: #08090a;
  --lp-canvas-raised: #0d0e10;
  --lp-well: #111214;
  --lp-ink: #eceef0;
  --lp-ink-2: #a3a6aa;
  --lp-ink-3: #6f7276;
  --lp-ink-4: #4a4c50;
  --lp-rule: #1a1b1e;
  --lp-rule-2: #25272a;
  --lp-rule-strong: #45474b;
  --lp-hatch: rgba(236, 238, 240, 0.07);
  --lp-dot: rgba(236, 238, 240, 0.12);
  --lp-inverse-canvas: #fbfbf9;
  --lp-inverse-ink: #121417;
  --lp-shot-shadow:
    0 0 0 1px rgba(236, 238, 240, 0.04),
    0 32px 64px -32px rgba(0, 0, 0, 0.9),
    0 80px 120px -60px rgba(0, 0, 0, 0.8);
  --lp-overlay-shadow:
    0 0 0 1px rgba(236, 238, 240, 0.06),
    0 24px 48px -16px rgba(0, 0, 0, 0.85);
}

:root {
  --lp-font-sans: "Geist Sans", ui-sans-serif, system-ui, sans-serif;
  --lp-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lp-font-display: var(--lp-font-sans);
  --lp-container: 1296px;
  --lp-gutter: clamp(20px, 4vw, 56px);
  --lp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --lp-control-height: 40px;
  --lp-control-radius: 0px;
  /*
   * Use instead of vh/svh. index.html replaces it with the window's height in
   * px, re-read on touch devices only when the width changes: Firefox for iOS
   * resizes every viewport unit, svh included, as its toolbars slide in and
   * out while scrolling, which stretched the hero field and shifted the page.
   */
  --lp-viewport-height: 100svh;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--lp-canvas);
  color: var(--lp-ink);
  font-family: var(--lp-font-sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  transition: background-color 240ms var(--lp-ease-out), color 240ms var(--lp-ease-out);
}

::selection {
  background: var(--lp-ink);
  color: var(--lp-canvas);
}

.lp-root {
  background: var(--lp-canvas);
  color: var(--lp-ink);
  font-family: var(--lp-font-sans);
  min-height: 100%;
  overflow-x: clip;
}

.lp-container {
  margin-inline: auto;
  max-width: calc(var(--lp-container) + 2 * var(--lp-gutter));
  padding-inline: var(--lp-gutter);
  width: 100%;
}

.lp-eyebrow {
  color: var(--lp-ink-3);
  font-family: var(--lp-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 16px;
  text-transform: uppercase;
}

.lp-visually-hidden {
  block-size: 1px;
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

/*
 * Base controls: monotone, square by default; directions set the radius.
 * Zero specificity (:where) so direction rules always win, whatever the
 * stylesheet order.
 */
:where(.lp-button) {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--lp-rule-strong);
  border-radius: var(--lp-control-radius);
  color: var(--lp-ink);
  cursor: pointer;
  display: inline-flex;
  font: 500 14px/1 var(--lp-font-sans);
  gap: 10px;
  height: var(--lp-control-height);
  justify-content: center;
  letter-spacing: -0.005em;
  padding: 0 18px;
  text-decoration: none;
  transition:
    background-color 160ms var(--lp-ease-out),
    border-color 160ms var(--lp-ease-out),
    color 160ms var(--lp-ease-out),
    transform 160ms var(--lp-ease-out);
  white-space: nowrap;
}

:where(.lp-button):hover {
  border-color: var(--lp-ink);
}

:where(.lp-button):active {
  transform: translateY(1px);
}

:where(.lp-button, .lp-icon-button, .lp-link):focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}

:where(.lp-button[data-tone="primary"]) {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: var(--lp-canvas);
}

:where(.lp-button[data-tone="primary"]):hover {
  background: color-mix(in oklab, var(--lp-ink) 86%, var(--lp-canvas));
}

:where(.lp-button[data-size="small"]) {
  font-size: 13px;
  height: 32px;
  padding: 0 14px;
}

:where(.lp-button__arrow) {
  transition: transform 200ms var(--lp-ease-out);
}

:where(.lp-button:hover .lp-button__arrow) {
  transform: translateX(3px);
}

:where(.lp-icon-button) {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--lp-rule-2);
  border-radius: var(--lp-control-radius);
  color: var(--lp-ink-2);
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  transition: border-color 160ms var(--lp-ease-out), color 160ms var(--lp-ease-out);
  width: 32px;
}

:where(.lp-icon-button):hover {
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}

/* The theme toggle carries both icons; the theme on <html> picks one (theme.tsx). */
.lp-theme-icon {
  display: inline-flex;
}

:root:not([data-st-theme="dark"]) .lp-theme-icon[data-theme-icon="dark"],
[data-st-theme="dark"] .lp-theme-icon[data-theme-icon="light"] {
  display: none;
}

:where(.lp-link) {
  color: inherit;
  text-decoration: none;
}

:where(.lp-wordmark) {
  align-items: center;
  color: var(--lp-ink);
  display: inline-flex;
  gap: 9px;
}

:where(.lp-wordmark__text) {
  font: 560 17px/1 var(--lp-font-sans);
  letter-spacing: -0.025em;
}

/* Development-only review switcher (App.tsx). */
.lp-review-switcher {
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  bottom: 16px;
  box-shadow: var(--lp-overlay-shadow);
  display: flex;
  left: 50%;
  padding: 4px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 100;
}

.lp-review-switcher button {
  background: transparent;
  border: 0;
  color: var(--lp-ink-3);
  cursor: pointer;
  font: 500 11px/1 var(--lp-font-mono);
  letter-spacing: 0.04em;
  padding: 8px 12px;
}

.lp-review-switcher button[aria-current] {
  background: var(--lp-ink);
  color: var(--lp-canvas);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/*
 * Market explorer styles, in the site's design language (landing.css, --lp-* tokens): monotone neutrals, Geist Sans
 * for copy, labels and controls, Geist Mono for eyebrows, codes, symbols and figures; square corners, 1px rules,
 * shadows on overlays only. scripts/build.ts puts the fonts and the site's src/foundation/landing.css (with its
 * landing-tokens.css) ahead of this file, so the site's `.lp-button`, `.lp-icon-button`, `.lp-eyebrow`,
 * `.lp-visually-hidden`, `.lp-link`, `.lp-wordmark` and theme icons apply as they are. The site's chrome (header,
 * beta notice, footer, cookie and privacy panels) copies its rules from the decoder's src/style.css (keep in step).
 * The explorer's own parts follow the site's: inputs and selects as site.css `.site-input` and `.site-select`, label
 * and value cells as `.site-facts`, the back link as `.site-back`, notices as `.site-form__alert`.
 * The tables follow the CME secdef viewer: filter bar, `table.data` with a sticky header, numbers right-aligned; they
 * scroll inside their frame and load more rows as they near its end.
 */

:root {
  /* Hairlines inside a frame, and the edges of frames, panels and fields (site.css `.site-input`, `.df-header__sheet`). */
  --rule: 1px solid var(--lp-rule);
  --frame: 1px solid var(--lp-rule-2);
  /* Space between the page's sections. */
  --section-space: 32px;
  /* The table scrolls inside its frame, so its header stays in view. */
  --table-height: 70vh;
  /* The site's header height and muted ink (data-field.css `.lp-dir-data-field`). */
  --df-header-height: 52px;
  --df-ink-3: #66686b;
  /* The beta notice's height before the decoder's src/chrome.ts measures it: site.css's estimate, one step per line. */
  --site-notice-height: 49px;
  /* Errors take the product's loss red, the only hue on marketing surfaces (site.css `--site-error`). */
  --site-error: #a52836;
}

[data-st-theme="dark"] {
  --df-ink-3: #8a8d91;
  --site-error: #e0675e;
}

@media (max-width: 1159px) {
  :root {
    --site-notice-height: 61px;
  }
}

@media (max-width: 649px) {
  :root {
    --site-notice-height: 81px;
  }
}

@media (max-width: 469px) {
  :root {
    --site-notice-height: 101px;
  }
}

@media (max-width: 389px) {
  :root {
    --site-notice-height: 121px;
  }
}

html {
  background: var(--lp-canvas);
  /* In-page links (the notice's to the footer notes) land below the header and the notice, as on the site. */
  scroll-padding-top: calc(76px + var(--site-notice-height));
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main fills the room above the footer. It starts below the header and the notice pinned over it. */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--df-header-height) + var(--site-notice-height));
  font-size: 14px;
  line-height: 20px;
}

/* Zero specificity and never a `.lp-button`, so landing.css's button rules keep their colours. */
:where(a:not(.lp-button)) {
  color: inherit;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--lp-ink-2);
}

/* The page's width, aligned with the site's header bar. */
.wrap {
  width: 100%;
  max-width: calc(var(--lp-container) + 2 * var(--lp-gutter));
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}

/* Codes, symbols, commands and figures. */
code,
.mono {
  font: 400 13px/20px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
}

/*
 * The explorer's scrolling areas (the tables, the dropdowns' lists, the detail pages' spread strip, the overview's
 * venues) with the design system's scrollbar (stxr-ui ScrollArea.css `.st-scroll-area__*`): a 12px track, no fill, a
 * square thumb inset 3px in the strong rule, thicker (2px inset) and in the secondary ink under the pointer or while
 * dragged. Browsers with the `::-webkit-scrollbar` parts (Chrome, Safari) draw it so; the others (Firefox) take the
 * standard thin scrollbar in the same colours, since the standard properties would switch Chrome's parts off.
 */
.table-wrap,
.choice__list,
.strip,
.venue-panel {
  scrollbar-color: var(--lp-rule-strong) transparent;
  scrollbar-width: thin;
}

@supports selector(::-webkit-scrollbar) {
  .table-wrap,
  .choice__list,
  .strip,
  .venue-panel {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }
}

.table-wrap::-webkit-scrollbar,
.choice__list::-webkit-scrollbar,
.strip::-webkit-scrollbar,
.venue-panel::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb,
.choice__list::-webkit-scrollbar-thumb,
.strip::-webkit-scrollbar-thumb,
.venue-panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  background: var(--lp-rule-strong) padding-box;
}

.table-wrap::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:active,
.choice__list::-webkit-scrollbar-thumb:hover,
.choice__list::-webkit-scrollbar-thumb:active,
.strip::-webkit-scrollbar-thumb:hover,
.strip::-webkit-scrollbar-thumb:active,
.venue-panel::-webkit-scrollbar-thumb:hover,
.venue-panel::-webkit-scrollbar-thumb:active {
  border-width: 2px;
  background-color: var(--lp-ink-2);
}

.table-wrap::-webkit-scrollbar-corner,
.choice__list::-webkit-scrollbar-corner,
.strip::-webkit-scrollbar-corner,
.venue-panel::-webkit-scrollbar-corner {
  background: transparent;
}

/* ---------- The site's header and beta notice ---------- */
/*
 * The site's header (src/directions/data-field/Header.tsx, data-field.css `.df-header*`) and beta notice
 * (src/site/SiteLayout.tsx, site.css `.site-notice*`), on the --lp-* tokens; their base controls are landing.css's.
 */
.df-header,
.site-notice {
  color: var(--lp-ink);
  font: 400 16px/1.5 var(--lp-font-sans);
}

.df-header {
  height: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.df-header__bar {
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.1);
  background: color-mix(in oklab, var(--lp-canvas-raised) 78%, transparent);
  border-bottom: 1px solid var(--lp-rule-2);
  display: flex;
  gap: 8px;
  height: var(--df-header-height);
  inset-inline: 0;
  padding-inline: max(var(--lp-gutter), calc((100% - var(--lp-container)) / 2));
  position: absolute;
  top: 0;
}

.df-header__home {
  align-items: center;
  display: inline-flex;
  height: 36px;
  padding-inline: 4px 20px;
}

.df-header__home:focus-visible,
.df-header__link:focus-visible,
.df-header__sheet-link:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: -2px;
}

.df-header__nav {
  align-items: center;
  border-inline-start: 1px solid var(--lp-rule-2);
  display: flex;
  height: 20px;
  padding-inline-start: 8px;
}

.df-header__link {
  align-items: center;
  color: var(--lp-ink-2);
  display: inline-flex;
  font: 450 14px/1 var(--lp-font-sans);
  height: 36px;
  letter-spacing: -0.005em;
  padding-inline: 12px;
  transition: color 160ms var(--lp-ease-out);
}

.df-header__link:hover {
  color: var(--lp-ink);
}

.df-header__actions {
  align-items: center;
  display: flex;
  margin-inline-start: auto;
}

.df-header__cta {
  --lp-control-height: 36px;
  margin-inline-end: 8px;
  min-width: 156px;
}

.df-header__icon.lp-icon-button {
  height: 36px;
  width: 36px;
}

.df-header__icon + .df-header__icon {
  margin-inline-start: -1px;
}

.df-header .df-header__menu-toggle {
  display: none;
}

.df-header__sheet {
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  box-shadow: var(--lp-overlay-shadow);
  display: grid;
  left: 50%;
  padding: 8px;
  position: absolute;
  top: calc(var(--df-header-height) + 8px);
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--lp-gutter) + 16px), calc(var(--lp-container) + 16px));
}

.df-header__sheet-link {
  align-items: center;
  border-bottom: 1px solid var(--lp-rule);
  color: var(--lp-ink);
  display: flex;
  font: 400 20px/1 var(--lp-font-sans);
  gap: 16px;
  height: 56px;
  letter-spacing: -0.02em;
  padding-inline: 8px;
}

.df-header__sheet-index {
  color: var(--df-ink-3);
  font: 500 11px/1 var(--lp-font-mono);
  letter-spacing: 0.08em;
}

.df-header__sheet-cta {
  --lp-control-height: 48px;
  justify-content: space-between;
  margin-top: 16px;
}

@media (max-width: 899px) {
  .df-header__nav {
    display: none;
  }

  .df-header .df-header__menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 479px) {
  .df-header__home {
    padding-inline-end: 8px;
  }

  .df-header__cta {
    min-width: 0;
    padding-inline: 14px;
  }
}

.site-notice {
  height: 0;
  position: sticky;
  top: var(--df-header-height);
  /* Under the header, whose menu sheet opens over it. */
  z-index: 49;
}

/* One centred line where it fits; an empty first column balances the dismiss button so the text centres on the bar. */
.site-notice__bar {
  align-items: center;
  background: var(--lp-well);
  border-block-end: 1px solid var(--lp-rule);
  color: var(--lp-ink-2);
  display: grid;
  font-size: 15px;
  gap: 16px;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  inset-inline: 0;
  line-height: 20px;
  padding-block: 10px;
  padding-inline: max(var(--lp-gutter), calc((100% - var(--lp-container)) / 2));
  position: absolute;
  top: 0;
}

.site-notice__text {
  grid-column: 2;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.site-notice strong {
  color: var(--lp-ink);
  font-weight: 500;
}

.site-notice sup {
  font-size: 0.75em;
  line-height: 0;
}

.site-notice a {
  color: var(--lp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-notice sup a {
  padding-inline: 0.15em;
  text-decoration: none;
}

.site-notice__dismiss.lp-icon-button {
  block-size: 28px;
  inline-size: 28px;
}

/* ---------- Controls ---------- */
/* landing.css's `.lp-button` has no disabled state: the site's (`--lp-disabled-opacity` in stxr-ui's landing tokens). */
.lp-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  border-color: var(--lp-rule-strong);
}

.error {
  color: var(--site-error);
}

/* The product page's type select, as site.css `.site-select`: a square box with its down marker at the right, drawn as two gradients. */
.section-bar select {
  appearance: none;
  height: 36px;
  padding: 0 32px 0 12px;
  border: var(--frame);
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--lp-ink-2) 50%) right 17px top 50% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--lp-ink-2) 50%, transparent 50%) right 12px top 50% / 5px 5px no-repeat,
    var(--lp-canvas-raised);
  color: var(--lp-ink);
  font: 400 14px/1.4 var(--lp-font-sans);
  cursor: pointer;
  transition: border-color 160ms var(--lp-ease-out);
}

.section-bar select:hover {
  border-color: var(--lp-rule-strong);
}

.section-bar select:focus-visible {
  border-color: var(--lp-ink);
  outline: 1px solid var(--lp-ink);
  outline-offset: 0;
}

/* ---------- Dropdowns (src/choice.ts) ---------- */

/* Its label over a box like the site's selects (site.css `.site-field`, `.site-select`); its list a sheet under it. */
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice__heading {
  font: 500 14px/20px var(--lp-font-sans);
  color: var(--lp-ink);
}

.choice__button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: var(--frame);
  background: var(--lp-canvas-raised);
  color: var(--lp-ink);
  font: 400 14px/1.4 var(--lp-font-sans);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms var(--lp-ease-out),
    color 160ms var(--lp-ease-out);
}

.choice__button:hover {
  border-color: var(--lp-rule-strong);
}

.choice__button:focus-visible {
  border-color: var(--lp-ink);
  outline: 1px solid var(--lp-ink);
  outline-offset: 0;
}

.choice__button:disabled {
  color: var(--lp-ink-3);
  cursor: default;
}

.choice__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nothing chosen: "Any", quieter. */
.choice__button--any .choice__value {
  color: var(--lp-ink-3);
}

/* The same chevron as site.css `.site-select`'s: two sides of a rotated square, turned up while the list is open. */
.choice__chevron {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.25px solid var(--lp-ink-2);
  border-bottom: 1.25px solid var(--lp-ink-2);
  rotate: 45deg;
  transition: rotate 160ms var(--lp-ease-out);
}

.choice__button[aria-expanded="true"] .choice__chevron {
  margin-top: 4px;
  rotate: 225deg;
}

.choice__list,
.choice__popup {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  background: var(--lp-canvas-raised);
  border: var(--frame);
  box-shadow: var(--lp-overlay-shadow);
}

.choice__list {
  max-height: 280px;
  overflow: auto;
  list-style: none;
}

/* Under the switch, the list is the popup's own content. */
.choice__popup .choice__list {
  position: static;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.choice--end .choice__list,
.choice--end .choice__popup {
  left: auto;
  right: 0;
}

/* Include / Exclude over an excludable list: the chosen one raised from the well, as a segmented control. */
.choice__modes {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
  padding: 2px;
  background: var(--lp-well);
}

.choice__mode {
  flex: 1;
  padding: 4px 10px;
  border: 0;
  background: none;
  color: var(--lp-ink-3);
  font: 500 13px/18px var(--lp-font-sans);
  cursor: pointer;
}

.choice__mode:hover {
  color: var(--lp-ink);
}

.choice__mode[aria-pressed="true"] {
  background: var(--lp-canvas-raised);
  color: var(--lp-ink);
}

.choice__mode:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: -2px;
}

.choice__list:focus {
  outline: none;
}

.choice__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font: 400 14px/20px var(--lp-font-sans);
  color: var(--lp-ink);
  white-space: nowrap;
  cursor: pointer;
}

.choice__option--active {
  background: var(--lp-well);
}

/* A box ticked when chosen (several choices), or a tick alone (one choice). */
.choice__check,
.choice__dot {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.choice__check {
  border: 1px solid var(--lp-rule-strong);
}

[aria-selected="true"] > .choice__check {
  border-color: var(--lp-ink);
  background: var(--lp-ink);
}

[aria-selected="true"] > .choice__check::after,
[aria-selected="true"] > .choice__dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid var(--lp-canvas);
  border-bottom: 1.5px solid var(--lp-canvas);
  rotate: 45deg;
}

[aria-selected="true"] > .choice__dot::after {
  left: 5px;
  top: 2px;
  border-color: var(--lp-ink);
}

/* An excluding list crosses its chosen boxes instead of ticking them. */
.choice__list--exclude [aria-selected="true"] > .choice__check::before,
.choice__list--exclude [aria-selected="true"] > .choice__check::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 8px;
  height: 0;
  border: 0;
  border-bottom: 1.5px solid var(--lp-canvas);
  rotate: 45deg;
}

.choice__list--exclude [aria-selected="true"] > .choice__check::before {
  rotate: -45deg;
}

/* The sort in the table's bar: its label on the button, which reads as the bar's other buttons. */
.choice--inline {
  flex: none;
}

.choice--inline .choice__button {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-left: var(--rule);
  background: none;
}

.choice--inline .choice__button:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: -2px;
}

.choice--inline .choice__list {
  top: calc(100% + 1px);
}

.choice__label {
  color: var(--lp-ink-3);
}

/* ---------- Viewer ---------- */
.viewer,
.explorer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewer {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* What stands in for the explorer when its data cannot be read (site.css `.site-form__alert`). */
.notice {
  margin: 0;
  padding: 12px 14px;
  border: var(--rule);
  background: var(--lp-well);
  color: var(--lp-ink-2);
}

/* ---------- Intro and overview (src/overview.ts) ---------- */
/* The title in the site's display face, kept small: the table is the page. */
.intro h1 {
  margin: 0 0 6px;
  font: 400 clamp(28px, 20px + 1.2vw, 36px) / 1.1 var(--lp-font-display);
  letter-spacing: -0.03em;
  color: var(--lp-ink);
}

.intro-lede {
  max-width: 72ch;
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--lp-ink-2);
}

/* The data's size and date, as figures. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0 0;
  font: 400 12px/18px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink-3);
}

/* Bento tiles: the two rankings and the venues, then the asset classes beside Structure's line. */
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "products contracts venues"
    "classes classes pitch";
  gap: 16px;
}

.tile--products {
  grid-area: products;
}

.tile--contracts {
  grid-area: contracts;
}

.tile--venues {
  grid-area: venues;
}

.tile--classes {
  grid-area: classes;
}

.tile--pitch {
  grid-area: pitch;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border: var(--frame);
  background: var(--lp-canvas-raised);
}

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tile-head h2 {
  margin: 0;
}

.tile-note {
  font: 400 11px/16px var(--lp-font-mono);
  color: var(--lp-ink-3);
  white-space: nowrap;
}

.tile a {
  text-decoration: none;
}

/* A ranking: place, code, name, one fact; the columns line up across rows (subgrid), room kept for its rows while they load. */
.rank {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-content: start;
  min-height: 290px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank li,
.rank a {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

.rank li {
  border-bottom: var(--rule);
}

.rank a {
  align-items: baseline;
  column-gap: 10px;
  padding: 4px 0;
}

.rank a:hover .rank-code,
.rank a:focus-visible .rank-code {
  text-decoration: underline;
}

/* The column heads: two quiet labels over the list, without a rule of their own. */
.rank .rank-head {
  column-gap: 10px;
  border-bottom: 0;
}

.rank-head > span {
  padding-top: 4px;
  font: 500 10px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink-4);
}

.rank-place {
  font: 400 12px/20px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--lp-ink-3);
}

.rank-code {
  font: 500 13px/20px var(--lp-font-mono);
  color: var(--lp-ink);
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lp-ink-2);
}

.rank-meta {
  font: 400 12px/20px var(--lp-font-mono);
  text-align: right;
  white-space: nowrap;
  color: var(--lp-ink-3);
}

.rank-error {
  grid-column: 1 / -1;
  color: var(--site-error);
}

/* The link to the whole ranking, the figures' trading day at the right. */
.tile-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tile-link {
  font-size: 13px;
  color: var(--lp-ink-2);
}

.tile-link:hover {
  color: var(--lp-ink);
  text-decoration: underline;
}

/* A ranking tile's head: the title, its tabs at the right (under it when they do not fit), on the tile's one rule. */
.rank-tile-head {
  flex-wrap: wrap;
  row-gap: 2px;
  border-bottom: var(--rule);
}

/* The rankings' and the calculators' tabs, as the site header's links: the one shown in ink and underlined on the head's rule, the others muted. */
.rank-tabs,
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
}

.rank-tab,
.calc-tab {
  margin-bottom: -1px;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--lp-ink-3);
  font: 450 13px/20px var(--lp-font-sans);
  cursor: pointer;
  transition: color 160ms var(--lp-ease-out);
}

.rank-tab:hover,
.calc-tab:hover {
  color: var(--lp-ink);
}

.rank-tab[aria-selected="true"],
.calc-tab[aria-selected="true"] {
  border-bottom-color: var(--lp-ink);
  color: var(--lp-ink);
}

.rank-tab:focus-visible,
.calc-tab:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 2px;
}

/*
 * Venues: a tab per group (futures, equities), as a ranking tile's, over the group's table: names linking to the table
 * on that venue, counts in mono. The panel fills the height the rankings beside it give the row and scrolls past it:
 * its content never sets the row's height (`contain: size`), however many venues there are. It keeps room for the head
 * and eight venues (20px and 27px each), where the tiles beside it are shorter (two columns).
 */
.venue-panel {
  flex: 1 1 0;
  min-height: 236px;
  overflow-y: auto;
  contain: size;
}

.venue-table {
  width: 100%;
  border-collapse: collapse;
}

.venue-table th,
.venue-table td {
  padding: 3px 0 3px 12px;
  border-bottom: var(--rule);
  text-align: right;
  white-space: nowrap;
}

.venue-table th:first-child {
  width: 100%;
  padding-left: 0;
  text-align: left;
}

.venue-table tbody th {
  font-weight: 400;
}

.venue-table td {
  font: 400 12px/20px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink-2);
}

.venue-table tbody th a:hover {
  text-decoration: underline;
}

/* The column heads, as a ranking's: quiet labels without a rule, kept over the rows as they scroll. */
.venue-table thead th {
  position: sticky;
  top: 0;
  padding-top: 4px;
  padding-bottom: 0;
  border-bottom: 0;
  background: var(--lp-canvas-raised);
  font: 500 10px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink-4);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border: var(--frame);
  font-size: 13px;
  color: var(--lp-ink);
  transition: border-color 160ms var(--lp-ease-out);
}

.chip:hover {
  border-color: var(--lp-rule-strong);
  background: var(--lp-well);
}

.chip-count {
  font: 400 11px/18px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink-3);
}

/*
 * Its title, the site's pitch line under it, its button at the bottom right, in the theme's inverse: the site's
 * tokens swapped for the tile, so its primary button inverts with it. Behind them, the site hero's field
 * (src/pitch-field.ts), its tokens as data-field.css's `--df-field-*` for the inverse colours, without the axes.
 */
.tile.tile--pitch {
  --lp-ink: var(--lp-inverse-ink);
  --lp-canvas: var(--lp-inverse-canvas);
  --pitch-field-dot: rgba(236, 238, 240, 0.2);
  --pitch-field-rule: transparent;
  --pitch-field-axis: transparent;
  --pitch-field-alpha: 0.1;
  --pitch-field-shortlist-alpha: 0.3;
  position: relative;
  overflow: hidden;
  gap: 12px;
  border-color: var(--lp-canvas);
  background: var(--lp-canvas);
}

[data-st-theme="dark"] .tile.tile--pitch {
  --pitch-field-dot: rgba(18, 20, 23, 0.22);
  --pitch-field-shortlist-alpha: 0.26;
}

/* Toned down to a backdrop, the promoted run included, and faded out toward the text at the left. */
.pitch-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  mask-image: linear-gradient(to right, rgb(0 0 0 / 0.25), #000 70%);
}

.tile--pitch > :not(.pitch-field) {
  position: relative;
}

/* The inverse ink, toned down as --lp-ink-2 is on the page; close under the title. */
.pitch-sub {
  max-width: 48ch;
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: color-mix(in oklab, var(--lp-ink) 70%, var(--lp-canvas));
}

.tile--pitch .lp-button {
  align-self: flex-end;
  margin-top: auto;
}

.pitch-title {
  margin: 0;
  font: 400 20px/1.15 var(--lp-font-display);
  letter-spacing: -0.02em;
  color: var(--lp-ink);
}

@media (max-width: 1099px) {
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "products contracts"
      "venues classes"
      "venues pitch";
  }
}

@media (max-width: 679px) {
  .overview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "products" "contracts" "classes" "venues" "pitch";
  }

  /* Alone on its row, the venues' table takes its own height. */
  .venue-panel {
    flex: none;
    overflow-y: visible;
    contain: none;
  }
}

/* The search bar, as site.css `.site-input` at 40px: a prompt, the input, then the "/" key hint. */
.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 14px;
  background: var(--lp-canvas-raised);
  border: var(--frame);
  transition: border-color 160ms var(--lp-ease-out);
}

.field:hover {
  border-color: var(--lp-rule-strong);
}

.field:focus-within {
  border-color: var(--lp-ink);
  outline: 1px solid var(--lp-ink);
  outline-offset: 0;
}

.field .prompt {
  font: 500 13px/1 var(--lp-font-mono);
  color: var(--lp-ink-3);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--lp-ink);
  font: 400 15px/1.4 var(--lp-font-sans);
}

.field input::placeholder {
  color: var(--lp-ink-3);
}

/* The "/" shortcut's hint, until the bar has the cursor. */
.key-hint {
  flex: none;
  min-width: 22px;
  padding: 0 4px;
  border: var(--frame);
  font: 500 11px/20px var(--lp-font-mono);
  text-align: center;
  color: var(--lp-ink-3);
}

.field:focus-within .key-hint {
  display: none;
}

/* The table and the bar on top of it, in one frame. */
.frame {
  border: var(--frame);
  background: var(--lp-canvas-raised);
}

.frame .table-wrap,
.frame .empty {
  border: 0;
}

/* The title and count, the sort, the order, filter and columns buttons, as the site header's links (data-field.css `.df-header__link`). */
.table-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: var(--rule);
}

/* What the table lists and how many rows match: one line, the title cut short when the page is narrow. */
.table-caption {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  line-height: 44px;
  white-space: nowrap;
}

.table-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 450 14px/44px var(--lp-font-sans);
  letter-spacing: -0.005em;
  color: var(--lp-ink);
}

.table-count {
  flex: none;
  font: 400 13px/44px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lp-ink-3);
}

/* The sort's slot in the bar: its dropdown fills it. */
.sort-slot {
  display: flex;
  min-width: 0;
}

/* A narrow page drops the sort's label. */
@media (max-width: 559px) {
  .choice__label {
    display: none;
  }
}

.bar-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-left: var(--rule);
  background: none;
  color: var(--lp-ink-2);
  cursor: pointer;
  transition: color 160ms var(--lp-ease-out);
}

.bar-button:hover,
.filter-button[aria-expanded="true"],
.columns-button[aria-expanded="true"],
.order-button[aria-pressed="true"] {
  color: var(--lp-ink);
}

.bar-button:disabled {
  color: var(--lp-ink-3);
  cursor: default;
}

.bar-button:focus-visible {
  outline-offset: -2px;
}

/* The order's arrow points the way the values go: down from the largest or the latest, up from A. */
.order-button svg {
  transition: rotate 160ms var(--lp-ease-out);
}

.order-button[data-direction="up"] svg {
  rotate: 180deg;
}

/* How many filters are on. */
.filter-count {
  font: 500 12px/1 var(--lp-font-mono);
  color: var(--lp-ink);
}

/* The columns menu (src/columns.ts): a sheet under the bar's right end, as the dropdowns' lists. */
.column-menu {
  position: relative;
  display: flex;
}

.column-menu__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 1px);
  right: 0;
  min-width: 240px;
  padding: 4px;
  background: var(--lp-canvas-raised);
  border: var(--frame);
  box-shadow: var(--lp-overlay-shadow);
}

.column-menu__hint {
  margin: 0;
  padding: 6px 10px 4px;
  font: 400 12px/16px var(--lp-font-sans);
  color: var(--lp-ink-3);
}

.column-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.column-menu__item {
  display: flex;
  align-items: center;
}

.column-menu__item:hover,
.column-menu__item--dragging {
  background: var(--lp-well);
}

.column-menu__handle {
  flex: none;
  padding: 7px 6px 7px 10px;
  border: 0;
  background: none;
  color: var(--lp-ink-3);
  font: 400 14px/20px var(--lp-font-sans);
  cursor: grab;
  touch-action: none;
}

.column-menu__item--dragging .column-menu__handle {
  cursor: grabbing;
}

.column-menu__handle:hover,
.column-menu__handle:focus-visible {
  color: var(--lp-ink);
}

.column-menu__handle:focus-visible {
  outline-offset: -2px;
}

.column-menu__label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 4px;
  font: 400 14px/20px var(--lp-font-sans);
  color: var(--lp-ink);
  white-space: nowrap;
  cursor: pointer;
}

.column-menu__label input {
  margin: 0;
  accent-color: var(--lp-ink);
}

.column-menu__note {
  margin-left: auto;
  padding-left: 12px;
  font-size: 12px;
  color: var(--lp-ink-3);
}

/* The filters, a strip across the table under its bar, the table below it. */
.filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 14px;
  border-bottom: var(--rule);
}

.filter-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.filters .lp-button {
  flex: none;
}

@media (max-width: 759px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters .lp-button {
    align-self: flex-start;
  }
}

@media (max-width: 459px) {
  .filter-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A narrow page leaves the asset class out of the tables. */
@media (max-width: 559px) {
  table.data .asset {
    display: none;
  }
}

/* Under a table's rows while its next ones load, or why they did not. */
.more {
  margin: 0;
  padding: 8px 12px;
  color: var(--lp-ink-3);
}

.table-wrap {
  overflow: auto;
  max-height: var(--table-height);
  border: var(--frame);
  background: var(--lp-canvas-raised);
}

table.data {
  width: 100%;
  border-collapse: collapse;
}

/* The header row in the site's eyebrow (landing.css `.lp-eyebrow`). */
table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: var(--lp-well);
  border-bottom: var(--rule);
  font: 500 11px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--lp-ink-3);
}

table.data td {
  padding: 6px 12px;
  border-bottom: var(--rule);
  white-space: nowrap;
  vertical-align: top;
}

/* Figures in mono, right-aligned, digits in columns. */
table.data td.num {
  font: 400 13px/20px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
}

table.data td.num,
table.data th.num {
  text-align: right;
}

/* The products table's Name takes the spare width and ends a long name with an ellipsis. */
table.data td.name {
  width: 100%;
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.data tbody tr.clickable {
  cursor: pointer;
}

/* A row's key cell links to its page; it reads as the row's other cells. */
table.data td a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

table.data tr.clickable:hover td a,
table.data td a:focus-visible {
  text-decoration: underline;
}

table.data td a:focus-visible {
  outline-offset: 2px;
}

table.data tbody tr:hover td {
  background: var(--lp-well);
}

.empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: var(--frame);
  background: var(--lp-canvas-raised);
}

.empty--centered {
  justify-content: center;
}

.empty p {
  margin: 0;
  flex: 1 1 360px;
}

/* The no-data line, centred. */
.empty--centered p {
  flex: none;
  text-align: center;
}

/* ---------- Product and instrument pages ---------- */
/* Back to the explorer (site.css `.site-back`). */
.back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lp-ink-2);
  text-decoration: none;
  transition: color 160ms var(--lp-ease-out);
}

.back-link:hover {
  color: var(--lp-ink);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail p {
  margin: 0;
}

/*
 * The panel: a head with the code or symbol, the title and the venue's page, then sections of label-over-value
 * cells. Scoped to `.detail`: the explorer page's tab panel is also `.panel`.
 */
.detail .panel {
  background: var(--lp-canvas-raised);
  border: var(--frame);
}

.detail .panel-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 20px;
  border-bottom: var(--rule);
}

.detail .panel-head .symbol {
  margin: 0;
  font: 500 24px/1.2 var(--lp-font-mono);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.detail .panel-head .title {
  font: 400 20px/1.3 var(--lp-font-sans);
  letter-spacing: -0.02em;
  color: var(--lp-ink-2);
}

/* The venue's page (LP-D210), at the head's right. */
.detail .panel-head .lp-button {
  margin-left: auto;
  align-self: center;
}

.detail .section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: var(--rule);
}

.detail .section.flush {
  padding: 0;
}

.detail .section:last-child {
  border-bottom: 0;
}

/*
 * A section's cells run to its sides, and to its bottom when nothing follows them: there the section's own rule
 * closes them. Followed by more of the section, they close on a rule of their own, across the whole panel.
 */
.detail .section > .kv {
  margin: 0 -20px;
  border-top: var(--rule);
}

.detail .section > .kv:last-child {
  margin-bottom: -16px;
}

.detail .section > .kv:not(:last-child) {
  border-bottom: var(--rule);
}

.detail .section.flush > .kv {
  margin: 0;
  border-top: 0;
}

/* Label and value cells with hairline dividers: the label in the site's eyebrow, the value in its copy (site.css `.site-facts`). */
.detail .kv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: clip;
}

@media (max-width: 760px) {
  .detail .kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Each cell's right and bottom borders overlap the next column and row by their width, so a divider is one hairline
 * wherever a cell is or is not, and the grid clips the last column's and the last row's: the panel's or the section's
 * rule closes them, never doubled.
 */
.detail .kv > div {
  border-bottom: var(--rule);
  border-right: var(--rule);
  margin-right: -1px;
  margin-bottom: -1px;
  padding: 12px 20px;
  min-width: 0;
}

.detail .kv dt {
  font: 500 11px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

.detail .kv dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.detail .kv dd a {
  text-decoration: underline;
}

/* A listing's ticker, linked or not, and its copy button (src/detail.ts `listingCells`). */
.detail .ticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-ink-3);
  cursor: pointer;
  transition: color 160ms var(--lp-ease-out);
}

.copy-button:hover {
  color: var(--lp-ink);
}

/* The tick value: the figure the page leads with. */
.detail .big {
  font: 500 18px/24px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* The calculators (src/tools.ts): the tick value calculator's one row, the others' labelled fields over their results. */
.calculator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator input,
.tool-field input {
  width: 96px;
  height: 36px;
  padding: 0 12px;
  border: var(--frame);
  border-radius: 0;
  background: var(--lp-canvas-raised);
  color: var(--lp-ink);
  font: 400 13px/1 var(--lp-font-mono);
  transition: border-color 160ms var(--lp-ease-out);
}

.calculator input:hover,
.tool-field input:hover {
  border-color: var(--lp-rule-strong);
}

.calculator input:focus-visible,
.tool-field input:focus-visible {
  border-color: var(--lp-ink);
  outline: 1px solid var(--lp-ink);
  outline-offset: 0;
}

.tool-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* The label as the panel's cells write theirs (`.detail .kv dt`). */
.tool-field span {
  font: 500 11px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-ink-3);
}

.tool-field input {
  width: 100%;
}

/* Results: the label at the left, the figure at the right, on hairlines. */
.tool-result {
  margin: 2px 0 0;
}

.tool-result > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: var(--rule);
}

.tool-result dt {
  color: var(--lp-ink-2);
  font: 400 13px/20px var(--lp-font-sans);
}

.tool-result dd {
  margin: 0;
  font: 400 13px/20px var(--lp-font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/*
 * The floating Calculators panel (src/calculators.ts): pinned at first to the window's top right under the site's
 * header and notice, with the site's overlay shadow; once dragged, where it was left (its inline left and top).
 * Folded, it is its wrench button labelled "Calculators"; unfolded, its bar (the wrench alone, the title and the
 * contract) over the tabs and the calculator shown.
 */
.calc {
  position: fixed;
  top: calc(var(--df-header-height) + var(--site-notice-height) + 16px);
  right: 16px;
  z-index: 40;
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  box-shadow: var(--lp-overlay-shadow);
}

.calc.open {
  width: min(320px, calc(100vw - 32px));
}

/* The bar drags the panel: no text selection or touch scrolling starts on it. */
.calc-bar {
  display: flex;
  align-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.calc.dragging .calc-bar {
  cursor: grabbing;
}

.calc-toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-ink-2);
  cursor: inherit;
  transition: color 160ms var(--lp-ease-out);
}

/* Folded, the label after the wrench; it takes the button's color, brightening with it on hover. */
.calc:not(.open) .calc-toggle {
  padding: 0 14px 0 12px;
}

.calc-toggle .calc-label {
  color: inherit;
}

.calc-toggle:hover,
.calc-toggle[aria-expanded="true"] {
  color: var(--lp-ink);
}

.calc-toggle:focus-visible {
  outline: 1px solid var(--lp-ink);
  outline-offset: -1px;
}

/* `:not([hidden])`: a display here would override the hidden attribute's. */
.calc-title:not([hidden]) {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-right: 16px;
}

.calc-title h2 {
  margin: 0;
}

.calc-tabs {
  padding: 0 16px;
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.calc-view {
  padding: 14px 16px 16px;
}

/*
 * A product's futures on a year's twelve months, as the decoder's month-code table: a month with a contract is a
 * link, in ink on the well; the page's own contract outlined; ‹ › around the year at the right of the title.
 */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.code-year {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--lp-font-mono);
  color: var(--lp-ink-2);
}

.code-year span {
  min-width: 4ch;
  text-align: center;
  color: var(--lp-ink);
}

/* The year's ‹ ›, as landing.css `.lp-icon-button` at 28px. */
.code-year button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: var(--frame);
  background: transparent;
  color: var(--lp-ink-2);
  font: 400 14px/1 var(--lp-font-sans);
  cursor: pointer;
  transition: border-color 160ms var(--lp-ease-out), color 160ms var(--lp-ease-out);
}

.code-year button:hover:not(:disabled) {
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}

.code-year button:disabled {
  opacity: 0.4;
  cursor: default;
}

.codes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-left: var(--rule);
  border-top: var(--rule);
}

@media (max-width: 760px) {
  .codes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.codes > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  border-right: var(--rule);
  border-bottom: var(--rule);
  color: var(--lp-ink-4);
  text-decoration: none;
}

.codes b {
  font: 500 16px/20px var(--lp-font-mono);
}

.codes span,
.codes small {
  font: 500 11px/14px var(--lp-font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.codes a {
  background: var(--lp-well);
  color: var(--lp-ink);
  transition: background-color 160ms var(--lp-ease-out);
}

.codes a:hover {
  background: var(--lp-rule);
}

.codes a:focus-visible {
  outline-offset: -2px;
}

.codes .entered {
  box-shadow: inset 0 0 0 2px var(--lp-ink);
}

/* Contracts in a row of links, scrolling sideways (the spreads from a future). */
.strip-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strip {
  display: flex;
  overflow-x: auto;
  border-left: var(--rule);
  border-top: var(--rule);
}

.strip a {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 10px 12px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms var(--lp-ease-out);
}

.strip a:hover {
  background: var(--lp-well);
}

.strip a:focus-visible {
  outline-offset: -2px;
}

.strip b {
  font: 500 13px/20px var(--lp-font-mono);
}

.strip span {
  font: 500 11px/14px var(--lp-font-mono);
  letter-spacing: 0.04em;
  color: var(--lp-ink-3);
  text-transform: uppercase;
}

/* The raw identifiers under the panel: one row of eyebrow labels over one of codes. */
.meta-table {
  border-collapse: collapse;
  color: var(--lp-ink-2);
}

.meta-table th {
  padding: 4px 24px 6px 0;
  font: 500 11px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--lp-ink-3);
  border-bottom: var(--rule);
}

.meta-table td {
  padding: 6px 24px 0 0;
  font: 400 13px/20px var(--lp-font-mono);
  white-space: nowrap;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* A section's title, then its type filter at the right. */
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-bar h2 {
  margin: 0;
}

/* ---------- Footer ---------- */
/*
 * The site's footer (src/site/SiteLayout.tsx), built from its data by scripts/build.ts and styled
 * like it (site.css `.site-footer*`, cursor-structure.css `.cs-footer*`) on the --lp-* tokens:
 * wordmark and link columns, the footnotes under a rule, then the legal lines beside Cookie
 * settings and the theme toggle under another. It keeps the page's width (`.wrap`).
 */
.site-footer {
  margin-top: auto;
  padding-block: 56px 32px;
  border-top: 1px solid var(--lp-rule);
  background: var(--lp-canvas);
  color: var(--lp-ink);
  font: 400 16px/1.5 var(--lp-font-sans);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 16px;
}

.site-footer__brand {
  grid-column: 1 / span 4;
  align-self: start;
  justify-self: start;
  text-decoration: none;
}

.site-footer__brand:focus-visible,
.site-footer__link:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 4px;
}

.site-footer__columns {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
}

.site-footer__title {
  margin: 0 0 14px;
  color: var(--lp-ink-3);
  font: 500 11px/16px var(--lp-font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--lp-ink);
}

.site-footer__notes {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-rule);
  color: var(--lp-ink-2);
  font-size: 13px;
}

.site-footer__notes p {
  margin: 0;
  line-height: 20px;
}

.site-footer__notes sup {
  font-size: 0.75em;
  line-height: 0;
}

/* The controls line up with the address, the legal block's last line. */
.site-footer__base {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-rule);
  color: var(--lp-ink-2);
  font-size: 13px;
}

.site-footer__legal {
  display: grid;
  gap: 4px;
}

.site-footer__legal a {
  color: var(--lp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Cookie settings, then the theme toggle at the far right. */
.site-footer__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__cookies {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-ink-2);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .site-footer__brand,
  .site-footer__columns {
    grid-column: 1 / -1;
  }
}

/* Copyright and address, then Cookie settings (consent regions only) at the left and the theme toggle at the right. */
@media (max-width: 767px) {
  .site-footer__base {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .site-footer__controls {
    justify-content: flex-end;
  }

  .site-footer__cookies {
    margin-inline-end: auto;
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Cookie consent ---------- */
/* The site's banner (site.css `.site-banner`, buttons landing.css `.lp-button` primary small), pinned to the bottom of the window. */
.consent {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 20px;
  background: var(--lp-canvas-raised);
  border: 1px solid var(--lp-rule-2);
  box-shadow: var(--lp-overlay-shadow);
  color: var(--lp-ink);
  font: 400 16px/1.5 var(--lp-font-sans);
}

.consent p {
  margin: 0;
  color: var(--lp-ink-2);
  font-size: 14px;
  line-height: 20px;
}

.consent p a {
  color: var(--lp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
