/*
 * Platfform CMS demo - CSS variables
 * Copied from the Figma frame "CSS variables and contrast" (Platfform Demo Wireframes), 14 November 2026.
 * Stand-in styling for the demo only. Not Platfform's new brand.
 * Colours are from the current platfform.org site.
 * --color-urgent is darkened from #FF2828 so white text passes WCAG 2.2 AA.
 */

:root {
  /* Colours */
  --color-background: #FFFFFF;
  --color-surface: #F4F4F4;
  --color-surface-strong: #E6E8EA;
  --color-image-placeholder: #D5D9DC;
  --color-divider: #D5D9DC;
  --color-border: #5E6A71;
  --color-text: #1A2732;
  --color-text-muted: #5E6A71;
  --color-action: #1A2732;
  --color-on-action: #FFFFFF;
  --color-urgent: #CC1F1F;
  --color-on-urgent: #FFFFFF;
  --color-focus: #1A2732;
  --color-accent: #FF2828;          /* decorative only (bars, icon circles) */
  --color-accent-subtle: #FFF3F2;   /* At a glance panel background */
  --color-inverse-background: #1A2732;
  --color-on-inverse: #FFFFFF;
  --color-on-inverse-muted: #D5D9DC;
  --color-logo: #FF2828;

  /* Spacing */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-120: 120px;

  /* Radius */
  --radius-small: 0;
  --radius-medium: 0;

  /* Type. Libre Franklin is an open stand-in for Franklin Gothic URW on the live site */
  --font-family: "Libre Franklin", Arial, sans-serif;
  --font-heading-h1: 600 44px/52px var(--font-family);
  --font-heading-h2: 600 30px/38px var(--font-family);
  --font-heading-h3: 600 22px/30px var(--font-family);
  --font-body-large: 400 20px/30px var(--font-family);
  --font-body-default: 400 18px/28px var(--font-family);
  --font-body-small: 400 16px/24px var(--font-family);
  --font-label-default: 600 16px/24px var(--font-family);
  --font-label-small: 600 14px/20px var(--font-family);
}

@media (max-width: 767px) {
  :root {
    --font-heading-h1: 600 32px/40px var(--font-family);
    --font-heading-h2: 600 24px/32px var(--font-family);
  }
}

/*
 * Contrast checks from the Figma (WCAG 2.2 AA: 4.5:1 text, 3:1 borders and focus)
 * Body text #1A2732 on #FFFFFF = 15.22:1
 * Text on grey panels #1A2732 on #F4F4F4 = 13.83:1
 * Secondary text #5E6A71 on #FFFFFF = 5.56:1
 * Secondary text on panels #5E6A71 on #F4F4F4 = 5.06:1
 * Primary button #FFFFFF on #1A2732 = 15.22:1
 * Get help now button #FFFFFF on #CC1F1F = 5.55:1
 * Footer and band text #FFFFFF on #1A2732 = 15.22:1
 * Footer small text #D5D9DC on #1A2732 = 10.71:1
 * Access tag #1A2732 on #E6E8EA = 12.39:1
 * Field and option borders #5E6A71 on #FFFFFF = 5.56:1
 * Focus ring #1A2732 on #FFFFFF = 15.22:1
 * Red accent bars (decorative) #FF2828 on #FFFFFF = 3.76:1
 * At a glance panel text #1A2732 on #FFF3F2 = 14.0:1
 * Area chip borders #5E6A71 on #FFF3F2 = 5.1:1
 * Red icon circles (decorative) #FF2828 on #FFF3F2 = 3.5:1
 *
 * Finding: the live site's #FF2828 with white text is 3.76:1 and fails AA for normal text.
 * The demo uses #CC1F1F for the "Get help now" button instead.
 */
