/*
 * Measurement Finance Product Design Tokens — v2.13.0
 *
 * Canonical runtime tokens for public product surfaces. Components consume the semantic
 * tokens below, either directly or through the temporary --list-* / --detail-* aliases in
 * styles.css. Logo-only identity tokens remain in assets/measurement-finance-tokens.css.
 *
 * This file intentionally contains no component selectors. DESIGN.md defines usage rules.
 */

/*
 * Inter, self-hosted (DESIGN.md §4.3: the brand face MUST be self-hosted with real 400–700
 * weights before the CSS references it). --mf-font-sans named Inter for a long time while
 * nothing ever loaded it, so every surface silently rendered in the Arial/Segoe fallback with
 * browser-synthesised bold. These are Google's Inter v20 variable subsets — ONE file per
 * unicode-range covering the whole 400–700 axis, so 500 and 600 are real interpolated weights,
 * not faux bold. latin-ext only downloads when an accented market title needs it.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  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;
}

:root {
  color-scheme: light;

  /* Color primitives — never use accent or status base colors as small text. */
  /* Canvas and surface were byte-identical (#fffefa), so a panel was painted exactly the colour of the ground
     it sat on and a border was the only thing that could say "I am an object". That is the reason this product
     carries ~347 hairlines: they were not a habit, they were the forced consequence of a zero-lightness-delta
     surface system. The ladder is inverted rather than extended upward because there is no headroom above
     #fffefa — #fffefa to #ffffff is ΔL* 0.37 — and no headroom downward on the panel either, since
     --mf-color-text-secondary already sits at 5.01:1 on it. So the CANVAS moves down and the panel stays put.
     ΔL* 3.09, which is 1.6x the ~1.9 step this product already ships and reads at in its own hover states. */
  --mf-color-canvas: #f6f5f2;
  --mf-color-surface: #fffefa;
  --mf-color-surface-raised: #ffffff;
  --mf-color-surface-subtle: #f6f7f4;
  --mf-color-surface-hover: #fbfcfa;
  --mf-color-text-strong: #111316;
  --mf-color-text-primary: #1b2026;
  --mf-color-text-secondary: #65707a;
  --mf-color-text-disabled: #9aa3ad;
  --mf-color-border-subtle: rgba(17, 19, 22, 0.105);
  --mf-color-border-default: rgba(17, 19, 22, 0.18);
  --mf-color-border-strong: rgba(17, 19, 22, 0.28);
  --mf-color-accent: #74deeb;
  --mf-color-accent-soft: rgba(116, 222, 235, 0.18);
  --mf-color-accent-quiet: rgba(116, 222, 235, 0.09);
  --mf-color-accent-ink: #08758a;
  --mf-color-positive: #168765;
  --mf-color-positive-soft: rgba(22, 135, 101, 0.11);
  --mf-color-positive-ink: #0f7357;
  --mf-color-negative: #c85261;
  --mf-color-negative-soft: rgba(200, 82, 97, 0.10);
  --mf-color-negative-ink: #a73e50;
  --mf-color-warning: #96631c;
  --mf-color-warning-soft: rgba(150, 99, 28, 0.10);
  --mf-color-warning-ink: #825215;
  --mf-color-overlay: rgba(17, 19, 22, 0.54);

  /* Semantic color roles. */
  --mf-surface-canvas: var(--mf-color-canvas);
  --mf-surface-panel: var(--mf-color-surface);
  --mf-surface-raised: var(--mf-color-surface-raised);
  --mf-surface-subtle: var(--mf-color-surface-subtle);
  --mf-surface-hover: var(--mf-color-surface-hover);
  --mf-surface-selected: var(--mf-color-accent-soft);
  --mf-text-strong: var(--mf-color-text-strong);
  --mf-text-primary: var(--mf-color-text-primary);
  --mf-text-secondary: var(--mf-color-text-secondary);
  --mf-text-disabled: var(--mf-color-text-disabled);
  --mf-text-link: var(--mf-color-accent-ink);
  --mf-border-subtle: var(--mf-color-border-subtle);
  --mf-border-default: var(--mf-color-border-default);
  --mf-border-strong: var(--mf-color-border-strong);
  --mf-signal-accent: var(--mf-color-accent);
  --mf-signal-accent-ink: var(--mf-color-accent-ink);
  --mf-status-positive: var(--mf-color-positive);
  --mf-status-positive-text: var(--mf-color-positive-ink);
  --mf-status-negative: var(--mf-color-negative);
  --mf-status-negative-text: var(--mf-color-negative-ink);
  --mf-status-warning: var(--mf-color-warning);
  --mf-status-warning-text: var(--mf-color-warning-ink);

  /* Type roles. Inter is the shipped product face; mono is reserved for data. */
  --mf-font-sans: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mf-font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --mf-font-size-meta: 0.6875rem;
  --mf-font-size-label: 0.75rem;
  --mf-font-size-body-sm: 0.8125rem;
  --mf-font-size-body: 0.875rem;
  --mf-font-size-body-lg: 1rem;
  --mf-font-size-title-sm: 1.125rem;
  --mf-font-size-title-md: 1.25rem;
  --mf-font-size-title-lg: 2rem;
  --mf-font-size-display: 2.5rem;
  --mf-line-height-tight: 1.08;
  --mf-line-height-title: 1.2;
  --mf-line-height-body: 1.5;
  --mf-line-height-reading: 1.6;
  --mf-font-weight-regular: 400;
  --mf-font-weight-medium: 500;
  --mf-font-weight-semibold: 600;
  --mf-font-weight-bold: 700;
  --mf-letter-spacing-title: -0.01em;
  --mf-letter-spacing-label: 0.04em;

  /* Four-point spacing system with optical half-steps for dense financial UI. */
  --mf-space-0: 0;
  --mf-space-0-5: 2px;
  --mf-space-1: 4px;
  --mf-space-1-5: 6px;
  --mf-space-2: 8px;
  --mf-space-3: 12px;
  --mf-space-4: 16px;
  --mf-space-5: 20px;
  --mf-space-6: 24px;
  --mf-space-8: 32px;
  --mf-space-10: 40px;
  --mf-space-12: 48px;
  --mf-space-16: 64px;
  --mf-space-20: 80px;

  /* Geometry and layout. */
  --mf-rule-width: 1px;
  --mf-signal-rail-width: 3px;
  --mf-radius-none: 0;
  --mf-radius-xs: 4px;
  --mf-radius-sm: 6px;
  --mf-radius-md: 8px;
  --mf-radius-lg: 12px;
  --mf-radius-round: 999px;
  --mf-control-height-compact: 30px;
  --mf-control-height-default: 36px;
  --mf-control-height-touch: 44px;
  --mf-layout-landing-max: 1180px;
  --mf-layout-app-max: 1480px;
  --mf-layout-detail-max: 1420px;
  --mf-layout-reading-max: 68ch;
  --mf-layout-grid-step: 96px;
  --mf-layout-gutter: 20px;
  --mf-layout-gutter-compact: 16px;

  /* Elevation is functional: cards < sticky UI < modal/popover. */
  --mf-shadow-card: 0 18px 36px rgba(17, 19, 22, 0.05);
  --mf-shadow-card-quiet: 0 14px 30px rgba(17, 19, 22, 0.04);
  --mf-shadow-sticky: 0 22px 48px rgba(31, 35, 40, 0.075);
  --mf-shadow-detail: 0 22px 54px rgba(17, 19, 22, 0.065);
  --mf-shadow-overlay: 0 20px 42px rgba(31, 35, 40, 0.13);

  /* Motion. */
  --mf-duration-fast: 120ms;
  --mf-duration-standard: 180ms;
  --mf-duration-deliberate: 260ms;
  --mf-ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --mf-ease-linear: linear;

  /* Focus and layering. */
  --mf-focus-color: var(--mf-color-accent-ink);
  --mf-focus-ring: 0 0 0 2px var(--mf-surface-panel), 0 0 0 4px var(--mf-focus-color);
  --mf-layer-base: 0;
  --mf-layer-content: 10;
  --mf-layer-sticky: 40;
  --mf-layer-dropdown: 60;
  --mf-layer-overlay: 80;
  --mf-layer-toast: 100;

  /* Data visualization. */
  --mf-chart-line: #61777d;
  --mf-chart-line-prior: rgba(101, 112, 122, 0.52);
  --mf-chart-area: rgba(116, 222, 235, 0.13);
  --mf-chart-paper: #fbfcfa;
  --mf-chart-ink: #182026;
  --mf-chart-muted: #59666d;
  --mf-chart-faint: #909a9f;
  --mf-chart-rule: rgba(24, 32, 38, 0.10);
  --mf-chart-rule-strong: rgba(24, 32, 38, 0.28);
  --mf-chart-area-positive: rgba(22, 135, 101, 0.075);
  --mf-chart-area-negative: rgba(200, 82, 97, 0.07);
  --mf-chart-revision: var(--mf-color-warning);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --mf-duration-fast: 0.01ms;
    --mf-duration-standard: 0.01ms;
    --mf-duration-deliberate: 0.01ms;
  }
}
