
@font-face {
  font-family: 'Redacted';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/Redacted/Redacted-Regular.woff2') format('woff2');
}

/**
 * Shared skeleton tokens for the market content blocks.
 *
 * Every block concatenates this with its own `style.css` into
 * `makeElement({ style })` — via `./skeleton.ts`, which also prepends the
 * Redacted @font-face — so a block carries everything `[skeleton]` needs and
 * nothing has to be linked globally for the mode to work.
 *
 * The values are the wireframe's grey ramp expressed against `--text` /
 * `--background` rather than the flat hexes it was drawn with, so a skeleton
 * follows the site into dark mode instead of staying a light-mode artifact.
 */
:root {
  /* Redacted has no italic or bold cut — the fallback keeps metrics sane if the
     woff2 is missing, in which case a skeleton degrades to plain grey text. */
  --market-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --market-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --market-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --market-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --market-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --market-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --market-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

market-infinite-ticker {
  --ticker-gap: 2rem;
  position: relative;
  display: flex;
  height: 40px;
  width: 100%;
  overflow: hidden;
  padding: .44rem 0;
  background: var(--text);
  color: var(--background);
  /* -webkit-mask-image: linear-gradient(to right, transparent, var(--text) 5%, var(--text) 95%, transparent);
  mask-image: linear-gradient(to right, transparent, var(--text) 5%, var(--text) 95%, transparent); */
}

market-infinite-ticker [track] {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--ticker-gap);
  will-change: transform;
}

market-infinite-ticker [group] {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--ticker-gap);
}

/* ---------------- SKELETON ---------------- */

market-infinite-ticker[skeleton],
market-infinite-ticker[skeleton] * {
  font-family: var(--market-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

/* The strip keeps its inverted fill — it is a dark band across the page in
   both schemes, and a wireframe of a pale one would be a wireframe of a
   different element. */
market-infinite-ticker[skeleton] {
  background: var(--market-skeleton-heading);
  color: var(--background);
  pointer-events: none;
  user-select: none;
}

/* The bars the placeholders draw, when there is nothing slotted to redact. */
market-infinite-ticker [placeholder] {
  display: block;
  flex: none;
  width: 120px;
  height: 9px;
  background: color-mix(in srgb, var(--background), transparent 30%);
}

market-infinite-ticker [placeholder]:nth-child(3n + 2) {
  width: 72px;
}

market-infinite-ticker [placeholder]:nth-child(3n + 3) {
  width: 160px;
}
