/*
 * TEST-ONLY tokens.css
 * Generated from the Rebrand Design System [2025] Figma variables (values resolved for
 * the A11y Responsiveness modes: mobile, tablet, desktop). This is NOT the production
 * token file. Replace it with the design system's real token files when available.
 *
 * - CSS names are derived mechanically from the Figma variable names
 *   (Foundation/pageBg -> --foundation-page-bg). Real names may differ.
 * - Breakpoints are an assumption: base = mobile, 768px = tablet, 1024px = desktop.
 * - Type tokens come from the A11y text styles, not from Figma variables.
 * - Font fallback stacks and the code font are test additions, marked below.
 */
/* Fields (headings), served by Adobe Fonts (Typekit kit mmu1kmx, allowed for engineering.policyme.com).
 * @import must come before every other rule in this file. */
@import url("https://use.typekit.net/mmu1kmx.css");
/* Satoshi, self-hosted from reference/assets/fonts/ (Fontshare, ITF Free Font License: see
 * Satoshi-LICENSE.txt there; self-hosting and use inside the organization are allowed, giving the
 * files to third parties is not). The page uses only these five faces. */
@font-face{font-family:"Satoshi";src:url("assets/fonts/Satoshi-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("assets/fonts/Satoshi-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Satoshi";src:url("assets/fonts/Satoshi-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("assets/fonts/Satoshi-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url("assets/fonts/Satoshi-BoldItalic.woff2") format("woff2");font-weight:700;font-style:italic;font-display:swap}
/* JetBrains Mono (code), self-hosted from reference/assets/fonts/ (SIL Open Font License: see
 * JetBrainsMono-LICENSE.txt there; self-hosting is allowed). Regular, Medium and Bold are used. */
@font-face{font-family:"JetBrains Mono";src:url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root {
  /* Colors */
  --foundation-page-bg: #fbf9f6;
  --foundation-headings: #30332a;
  --foundation-body-text: #30332a;
  --foundation-divider: #d1d2cd;
  --foundation-nav-bg: #f2ede6;
  --cards-card-bg-1: #ffffff;
  --cards-card-stroke: #d1d2cd;
  --buttons-link: #a84300;
  --buttons-link-hover: #803503;
  --buttons-primary-cta: #455326;
  --buttons-primary-cta-label: #ffffff;
  --buttons-primary-cta-hover: #566830;
  --buttons-primary-cta-label-hover: #ffffff;
  --foundation-pm-ivory: #f2ede6;
  --foundation-pm-stone: #d1d2cd;
  --foundation-icons-pm-lace: #f1f3eb;
  --foundation-pm-pistachio: #dfe5cf;
  --foundation-pm-banana-yellow: #ffe8c4;
  --foundation-pm-snow: #fbf9f6;
  --badges-badge-approved: #dfe5cf;
  --foundation-headings-accent: #566830;
  --foundation-secondary-text: #656a59;
  --foundation-pm-slate: #3838361f;

  /* Diagram palette (test addition, 2026-11-04). Diagrams use only these colours.
     Values come from the new design system (DS Sandbox Library, Brand collection, PolicyMe
     mode); the Brand role each one follows is in the comment. Text in diagrams is always ink. */
  --diagram-ink: #30332a;          /* --text-primary: text, strong lines, outlines */
  --diagram-ink-muted: #656a59;    /* --text-secondary: secondary labels, connectors */
  --diagram-line: #8b8e82;         /* --border-input: box outlines that define a shape */
  --diagram-line-subtle: #d1d2cd;  /* --border-default: grid lines, decorative rules only */
  --diagram-surface: #ffffff;      /* --bg-surface: box fill */
  --diagram-surface-alt: #f2ede6;  /* --bg-surface-subtle: group or lane background */
  --diagram-accent: #455326;       /* --bg-brand: one emphasized path, or the outline of an emphasized box */
  /* Status: reserved for meaning, always with an icon or label. Warning is a fill only, with an ink outline. */
  --diagram-success: #217a4c;      /* --bg-success (success/700) */
  --diagram-warning: #f3ae58;      /* --border-warning-subtle (warning/300) */
  --diagram-error: #db2200;        /* --bg-error (error/700) */
  --diagram-info: #1d5b7d;         /* --bg-info (info/700) */
  --diagram-success-soft: #dff4e5; /* --bg-success-muted (success/100) */
  --diagram-warning-soft: #ffe8c4; /* --bg-warning-muted (warning/100) */
  --diagram-error-soft: #f5d6d0;   /* --bg-error-muted (error/100) */
  --diagram-info-soft: #d8e7f0;    /* --bg-info-muted (info/100) */
  /* Categorical: groups, used in this order; cat-5 only when a fifth group is needed.
     -100: fill behind a group's boxes; -300: sub-group. A tinted fill always has its 700 outline. */
  --diagram-cat-1: #2a74c9;        /* --bg-accent-1 (blue/700) */
  --diagram-cat-1-100: #dbedff;    /* --bg-accent-1-muted */
  --diagram-cat-1-300: #99c8ff;    /* --border-accent-1-subtle */
  --diagram-cat-2: #8a3067;        /* --bg-accent-2 (plum/700) */
  --diagram-cat-2-100: #f0dae8;    /* --bg-accent-2-muted */
  --diagram-cat-2-300: #d097b6;    /* --border-accent-2-subtle */
  --diagram-cat-3: #a87b00;        /* --bg-accent-3 (amber/700) */
  --diagram-cat-3-100: #f7ead1;    /* --bg-accent-3-muted */
  --diagram-cat-3-300: #e2bf7c;    /* --border-accent-3-subtle */
  --diagram-cat-4: #008476;        /* --bg-accent-5 (teal/700) */
  --diagram-cat-4-100: #d8f2ed;    /* --bg-accent-5-muted */
  --diagram-cat-4-300: #8bd5c8;    /* --border-accent-5-subtle */
  --diagram-cat-5: #a84300;        /* --bg-accent-4 (rust/700) */
  --diagram-cat-5-100: #f6ece6;    /* --bg-accent-4-muted */
  --diagram-cat-5-300: #d4a180;    /* --border-accent-4-subtle */

  /* Spacing, radius and button dimensions */
  --foundation-responsive-spacing-space-3xs: 4px;  /* space3XS, DS spacers page (Figma 14308:362) */
  --foundation-responsive-spacing-space-2xs: 8px;
  --foundation-responsive-spacing-space-xs: 12px;
  --foundation-responsive-spacing-space-small: 16px;
  --foundation-responsive-spacing-space-medium: 24px;
  --foundation-responsive-spacing-space-large: 32px;
  --foundation-responsive-spacing-space-xl: 40px;
  --foundation-responsive-spacing-space-2xl: 48px;
  --foundation-responsive-spacing-space-3xl: 56px;
  --cards-radius-card: 12px;
  --buttons-radius-cta: 100px;
  --buttons-primary-cta-min-height-desktop: 56px;
  --buttons-primary-cta-min-height-mobile: 48px;
  --buttons-primary-cta-leftand-right: 24px;
  --buttons-primary-cta-topand-bottom: 8px;
  --badges-badge-left-right-padding: 8px;
  --badges-badge-top-bottom-padding: 4px;
  --badges-radius-badge: 6px;
  --buttons-radius-text-cta: 8px;
  --foundation-spacing-scale-scale-4xs: 2px;
  --foundation-spacing-scale-scale-2xs: 8px;
  --font-foundation-4xl: 80px;

  /* Font families (values from Figma variables) */
  --font-family-font-fam-headings: "Fields";
  --font-family-font-fam-body: "Satoshi";
  --font-family-font-fam-cta: "Satoshi";

  /* Type styles, mobile base. Fallback stacks are test additions. */
  --a11y-h1-font-family: var(--font-family-font-fam-headings), Georgia, 'Times New Roman', serif;
  --a11y-h1-font-size: 24px;
  --a11y-h1-font-weight: 500;
  --a11y-h1-line-height: 1.3;
  --a11y-h1-letter-spacing: 0;
  --a11y-h1-text-transform: none;
  --a11y-h2-font-family: var(--font-family-font-fam-headings), Georgia, 'Times New Roman', serif;
  --a11y-h2-font-size: 18px;
  --a11y-h2-font-weight: 500;
  --a11y-h2-line-height: 1.3;
  --a11y-h2-letter-spacing: 0;
  --a11y-h2-text-transform: none;
  --a11y-title-font-family: var(--font-family-font-fam-headings), Georgia, 'Times New Roman', serif;
  --a11y-title-font-size: 24px;
  --a11y-title-font-weight: 500;
  --a11y-title-line-height: 1.3;
  --a11y-title-letter-spacing: 0;
  --a11y-title-text-transform: none;
  --a11y-body-1-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-body-1-font-size: 14px;
  --a11y-body-1-font-weight: 400;
  --a11y-body-1-line-height: 1.5;
  --a11y-body-1-letter-spacing: 0;
  --a11y-body-1-text-transform: none;
  --a11y-body-1-bold-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-body-1-bold-font-size: 14px;
  --a11y-body-1-bold-font-weight: 700;
  --a11y-body-1-bold-line-height: 1.5;
  --a11y-body-1-bold-letter-spacing: 0;
  --a11y-body-1-bold-text-transform: none;
  --a11y-body-2-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-body-2-font-size: 14px;
  --a11y-body-2-font-weight: 400;
  --a11y-body-2-line-height: 1.5;
  --a11y-body-2-letter-spacing: 0;
  --a11y-body-2-text-transform: none;
  --a11y-body-2-bold-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-body-2-bold-font-size: 14px;
  --a11y-body-2-bold-font-weight: 700;
  --a11y-body-2-bold-line-height: 1.5;
  --a11y-body-2-bold-letter-spacing: 0;
  --a11y-body-2-bold-text-transform: none;
  --a11y-body-3-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-body-3-font-size: 12px;
  --a11y-body-3-font-weight: 400;
  --a11y-body-3-line-height: 1.5;
  --a11y-body-3-letter-spacing: 0;
  --a11y-body-3-text-transform: none;
  --a11y-body-3-bold-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-body-3-bold-font-size: 12px;
  --a11y-body-3-bold-font-weight: 700;
  --a11y-body-3-bold-line-height: 1.5;
  --a11y-body-3-bold-letter-spacing: 0;
  --a11y-body-3-bold-text-transform: none;
  --a11y-pre-heading-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-pre-heading-font-size: 12px;
  --a11y-pre-heading-font-weight: 700;
  --a11y-pre-heading-line-height: normal;
  --a11y-pre-heading-letter-spacing: 2px;
  --a11y-pre-heading-text-transform: uppercase;
  --a11y-label-font-family: var(--font-family-font-fam-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-label-font-size: 10px;
  --a11y-label-font-weight: 500;
  --a11y-label-line-height: 1;
  --a11y-label-letter-spacing: 2px;
  --a11y-label-text-transform: uppercase;
  --a11y-cta-l-font-family: var(--font-family-font-fam-cta), system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a11y-cta-l-font-size: 14px;
  --a11y-cta-l-font-weight: 700;
  --a11y-cta-l-line-height: 1.3;
  --a11y-cta-l-letter-spacing: 0;
  --a11y-cta-l-text-transform: none;

  /* TEST ADDITION, not in the design system: no monospace token exists yet */
  --test-code-font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  /* TEST ADDITIONS: raw values in the Figma article frame, no variable behind them */
  --test-code-font-size: 13px;
  --test-page-bottom-space: 120px;
  /* TEST ADDITION, not in the design system: a figure's note or instruction line under its label, 12px at every width */
  --test-figure-note-font-size: 12px;
  /* TEST ADDITIONS: inline code (not in Figma yet); em so it scales with the text around it */
  --test-inline-code-font-size: 0.875em;
  --test-inline-code-padding: 0.1em 0.3em;
  --test-inline-code-radius: 4px;
  /* TEST ADDITION: mobile menu scrim (Figma Header 220:378: headings colour at 40%), no variable behind it */
  --test-scrim: color-mix(in srgb, var(--foundation-headings) 40%, transparent);
  /* TEST ADDITION: height of the fixed header on an article page (bar plus the "In this article" row below
     1024px), so jumps to a heading and the sticky sidebar clear it */
  --test-header-height: 114px;
  /* TEST ADDITION: corner radius of the keyboard focus outline (kit owner, D50); the DS has no radius under 6px */
  --test-focus-radius: 2px;
  /* TEST ADDITION: height of the desktop table of contents list before it scrolls (kit owner, D67) */
  --test-toc-list-max-height: 300px;
  /* TEST ADDITION: fixed width of the primary button on desktop and tablet (kit owner, 2026-11-09) */
  --test-button-width-desktop: 240px;
}

/* tablet */
@media (min-width: 768px) {
  :root {
    --test-header-height: 122px;
    --a11y-h1-font-size: 28px;
    --a11y-h2-font-size: 22px;
    --a11y-title-font-size: 28px;
    --a11y-body-1-font-size: 16px;
    --a11y-body-1-bold-font-size: 16px;
    --a11y-body-2-font-size: 16px;
    --a11y-body-2-bold-font-size: 16px;
    --a11y-body-3-font-size: 14px;
    --a11y-body-3-bold-font-size: 14px;
    --a11y-pre-heading-font-size: 14px;
    --a11y-cta-l-font-size: 16px;
  }
}

/* desktop */
@media (min-width: 1024px) {
  :root {
    --test-header-height: 73px;
    --a11y-h1-font-size: 32px;
    --a11y-h2-font-size: 24px;
    --a11y-title-font-size: 40px;
    --a11y-body-1-font-size: 18px;
    --a11y-body-1-bold-font-size: 18px;
  }
}
