/* Sandberg website design system — existing token names synchronized with approved typography, 2026-11-12. */
:root, [data-theme="light"] {
  --brand-blue: #046cac; /* Core colour 1. Primary buttons, links, H1/H2 accent words, focus rings on light grounds, icons. White text on it 5.6:1; on Mist 4.6:1. */
  --brand-blue-hover: #035a8f; /* Hover state for primary buttons and links. White text 7.3:1. */
  --brand-blue-active: #034a75; /* Pressed state for primary buttons and links. White text 9.4:1. */
  --mist: #ddeaf0; /* Core colour 2. Background tint for alternate sections, panels, tags, info alerts and secondary button hover. Use Ink, Ink muted or Sandberg blue text on it. */
  --mist-strong: #c8dde8; /* Pressed state for secondary (outline) buttons and selected rows. Derived from Mist. */
  --surface-subtle: #f4f8fa; /* Lightest page tint for long pages where Mist would feel heavy. Derived from Mist. */
  --ink: #14212b; /* Core colour 3. Body text, headings, dark footer ground, text on Amber. 16.4:1 on white. */
  --ink-muted: #4a5a66; /* Secondary text: intros under headings, captions, meta lines, helper text. 7.1:1 on white, 5.8:1 on Mist. */
  --ink-subtle: #66757f; /* Placeholder text and inactive icons. 4.8:1 on white. Never for body copy. */
  --white: #ffffff; /* Core colour 4. Page ground, cards, text and focus rings on Sandberg blue or Ink. */
  --amber: #e8964a; /* Core colour 5. The single call-to-action colour (one per view) with Ink text 6.9:1, plus decorative shapes. Never text, never a meaningful icon on white (2.4:1). */
  --amber-hover: #dd8536; /* Hover state for Amber CTA buttons. Ink text 5.8:1. */
  --amber-active: #cc7428; /* Pressed state for Amber CTA buttons. Ink text 4.8:1. */
  --border-subtle: #d3dee5; /* Dividers, card outlines, table rules. Decorative only, so contrast is not required. */
  --border-input: #76858f; /* Form field and checkbox borders. 3.8:1 on white to meet the 3:1 non-text rule. */
  --border-input-hover: #4a5a66; /* Form field border on hover. */
  --focus-ring: var(--brand-blue); /* Keyboard focus outline on white, Mist and Surface subtle grounds. */
  --focus-ring-inverse: var(--white); /* Keyboard focus outline on Sandberg blue and Ink grounds. */
  --disabled-bg: #eef2f5; /* Background of disabled buttons and fields. */
  --disabled-text: #7d8a94; /* Text and icons in disabled controls. Exempt from contrast rules, but kept readable (3.1:1). */
  --error: #b42318; /* Error text, icons and field borders. 6.6:1 on white. */
  --error-bg: #fdecea; /* Error alert background. Error text 5.8:1 on it. */
  --success: #1c7a43; /* Success text, icons and field borders. 5.4:1 on white. */
  --success-bg: #e6f4ec; /* Success alert background. Success text 4.7:1 on it. */
  --warning: #8a5a00; /* Warning text and icons. 5.9:1 on white. Yellow itself never carries text. */
  --warning-bg: #fdf3dc; /* Warning alert background. Warning text 5.4:1 on it. */
  --info: var(--brand-blue); /* Info text and icons. */
  --info-bg: var(--mist); /* Info alert background. Sandberg blue text 4.6:1 on it. */
  --scrim: rgba(20, 33, 43, 0.6); /* Overlay behind modals and the mobile menu (Ink at 60%). */
  --shadow-none: none; /* Static cards on white: use a Border subtle outline instead of a shadow. */
  --shadow-xs: 0 1px 2px rgba(20, 33, 43, 0.06); /* Cards resting on Mist or Surface subtle grounds. */
  --shadow-sm: 0 2px 8px rgba(20, 33, 43, 0.08); /* Sticky header once the page scrolls. */
  --shadow-md: 0 8px 24px rgba(20, 33, 43, 0.12); /* Hovered cards, dropdown menus, tooltips. */
  --shadow-lg: 0 16px 40px rgba(20, 33, 43, 0.16); /* Modals, mobile menu panel, cookie banner. */
}
:root {
  --space-1: 4px; /* Icon-to-label nudge, gap inside tags. */
  --space-2: 8px; /* Gap between an icon and its text; between label and field. */
  --space-3: 12px; /* Vertical button padding; gap between stacked form fields' helper text. */
  --space-4: 16px; /* Gap between a heading and its paragraph; paragraph spacing; mobile page margin is 20px (space-4 plus space-1). */
  --space-5: 24px; /* Horizontal button padding; card padding on mobile; grid gutters. */
  --space-6: 32px; /* Card padding on desktop; gap between a section heading block and its content. */
  --space-7: 48px; /* Gap between groups within a section; mobile section padding is space-8. */
  --space-8: 64px; /* Section padding on mobile; gap between major blocks on desktop. */
  --space-9: 96px; /* Section padding on desktop. */
  --space-10: 128px; /* Hero padding on desktop; space above the footer. */
  --radius-xs: 4px; /* Checkboxes, small badges, code chips. */
  --radius-sm: 8px; /* Form fields, alerts, tooltips, dropdown items. */
  --radius-md: 12px; /* Dropdown menus, small cards, image thumbnails. */
  --radius-lg: 16px; /* Cards and feature panels. */
  --radius-xl: 24px; /* Hero media and large banners. */
  --radius-full: 9999px; /* Buttons, tags, avatars. Echoes the circles in the logo. */
  --border-width-hairline: 1px; /* Dividers, card outlines, form field borders at rest. */
  --border-width-strong: 2px; /* Outline buttons, focused or invalid fields, selected cards. */
  --border-width-focus: 2px; /* Focus outline width, drawn 2px outside the element (outline-offset 2px). */
  --opacity-hover-overlay: 0.08; /* Tint laid over images or cards on hover. */
  --opacity-pressed-overlay: 0.16; /* Tint laid over images or cards when pressed. */
  --opacity-image-overlay: 0.45; /* Ink overlay on photos that carry text. */
  --opacity-scrim: 0.6; /* Modal and mobile menu backdrop (see the Scrim colour). */
  --opacity-disabled: 0.45; /* Disabled icons and images only. Text and controls use the Disabled colours instead. */
  --duration-instant: 80ms; /* Pressed states. */
  --duration-fast: 120ms; /* Colour changes on hover: buttons, links, tags. */
  --duration-base: 200ms; /* Card lift and shadow, field focus, accordion icons. */
  --duration-slow: 320ms; /* Menus, accordions and drawers opening. */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* Default for hover and state changes. */
  --ease-enter: cubic-bezier(0, 0, 0.2, 1); /* Elements arriving: menus, modals. */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1); /* Elements leaving. */
  --font-sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --text-h1-desktop: 600 var(--stp-type-h1-desktop-size, 54px)/var(--stp-type-h1-desktop-line, 60.48px) var(--font-sans); /* Page title, one per page. */
  --text-h2-desktop: 600 var(--stp-type-h2-desktop-size, 40px)/var(--stp-type-h2-desktop-line, 48px) var(--font-sans); /* Section headings. */
  --text-h3-desktop: 600 var(--stp-type-h3-desktop-size, 30px)/var(--stp-type-h3-desktop-line, 38px) var(--font-sans); /* Sub-sections, feature titles. */
  --text-h4-desktop: 600 var(--stp-type-h4-desktop-size, 23px)/var(--stp-type-h4-desktop-line, 31.05px) var(--font-sans); /* Card titles, blog sub-points. */
  --text-h5-desktop: 600 var(--stp-type-h5-desktop-size, 19px)/var(--stp-type-h5-desktop-line, 25.65px) var(--font-sans); /* Small card titles, sidebar headings. */
  --text-h6-desktop: 600 var(--stp-type-h6-desktop-size, 17px)/var(--stp-type-h6-desktop-line, 27.2px) var(--font-sans); /* Footer column headings, form section labels. */
  --text-h1-mobile: 600 var(--stp-type-h1-mobile-size, 38px)/var(--stp-type-h1-mobile-line, 42.56px) var(--font-sans);
  --text-h2-mobile: 600 var(--stp-type-h2-mobile-size, 32px)/var(--stp-type-h2-mobile-line, 38.4px) var(--font-sans);
  --text-h3-mobile: 600 var(--stp-type-h3-mobile-size, 26px)/var(--stp-type-h3-mobile-line, 34px) var(--font-sans);
  --text-h4-mobile: 600 var(--stp-type-h4-mobile-size, 21px)/var(--stp-type-h4-mobile-line, 28px) var(--font-sans);
  --text-h5-mobile: 600 var(--stp-type-h5-mobile-size, 18px)/var(--stp-type-h5-mobile-line, 26px) var(--font-sans);
  --text-h6-mobile: 600 var(--stp-type-h6-mobile-size, 16px)/var(--stp-type-h6-mobile-line, 24px) var(--font-sans);
  --text-lead-desktop: 400 var(--stp-type-lead-desktop-size, 18px)/var(--stp-type-lead-desktop-line, 28px) var(--font-sans); /* Intro paragraph under H1 or H2. Mobile: Lead mobile. */
  --text-lead-mobile: 400 var(--stp-type-lead-mobile-size, 18px)/var(--stp-type-lead-mobile-line, 28px) var(--font-sans);
  --text-body-desktop: 400 var(--stp-type-body-desktop-size, 16px)/var(--stp-type-body-desktop-line, 28px) var(--font-sans); /* Default paragraph text, blog body. */
  --text-body-mobile: 400 var(--stp-type-body-mobile-size, 16px)/var(--stp-type-body-mobile-line, 28px) var(--font-sans);
  --text-small: 400 var(--stp-type-small-size, 14px)/var(--stp-type-small-line, 22px) var(--font-sans); /* Helper text, footnotes, legal copy. Same on all screens. */
  --text-label: 600 var(--stp-type-label-size, 11px)/var(--stp-type-label-line, 18.15px) var(--font-sans); /* Form labels, tags, table headers. */
  --text-legal: italic 200 var(--stp-type-legal-size, 13px)/var(--stp-type-legal-line, 21px) var(--font-sans);
  --text-caption: 400 var(--stp-type-caption-size, 13px)/var(--stp-type-caption-line, 18px) var(--font-sans); /* Image captions, chart sources, timestamps. */
  --text-overline: 600 var(--stp-type-overline-size, 12px)/var(--stp-type-overline-line, 28px) var(--font-sans); /* Eyebrow above headings. Uppercase via CSS. */
  --text-button: 600 var(--stp-type-button-size, 16px)/var(--stp-type-button-line, 24px) var(--font-sans); /* Button and CTA text. */
  --text-nav: 500 16px/24px var(--font-sans); /* Main navigation links. */
  --text-code: 400 15px/24px var(--font-mono); /* Code snippets, file names, hex values. */
  --text-data: 500 14px/20px var(--font-mono); /* Tabular figures, reference numbers. */
}
.h1-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h1-desktop-size, 54px);
  line-height: var(--stp-type-h1-desktop-line, 60.48px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.h2-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h2-desktop-size, 40px);
  line-height: var(--stp-type-h2-desktop-line, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h3-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h3-desktop-size, 30px);
  line-height: var(--stp-type-h3-desktop-line, 38px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.h4-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h4-desktop-size, 23px);
  line-height: var(--stp-type-h4-desktop-line, 31.05px);
  font-weight: 600;
  letter-spacing: 0;
}
.h5-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h5-desktop-size, 19px);
  line-height: var(--stp-type-h5-desktop-line, 25.65px);
  font-weight: 600;
  letter-spacing: 0;
}
.h6-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h6-desktop-size, 17px);
  line-height: var(--stp-type-h6-desktop-line, 27.2px);
  font-weight: 600;
  letter-spacing: 0;
}
.h1-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h1-mobile-size, 38px);
  line-height: var(--stp-type-h1-mobile-line, 42.56px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.h2-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h2-mobile-size, 32px);
  line-height: var(--stp-type-h2-mobile-line, 38.4px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h3-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h3-mobile-size, 26px);
  line-height: var(--stp-type-h3-mobile-line, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.h4-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h4-mobile-size, 21px);
  line-height: var(--stp-type-h4-mobile-line, 28px);
  font-weight: 600;
  letter-spacing: var(--stp-type-h4-mobile-tracking, 0em);
}
.h5-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h5-mobile-size, 18px);
  line-height: var(--stp-type-h5-mobile-line, 26px);
  font-weight: 600;
  letter-spacing: 0;
}
.h6-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-h6-mobile-size, 16px);
  line-height: var(--stp-type-h6-mobile-line, 24px);
  font-weight: 600;
  letter-spacing: 0;
}
.lead-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-lead-desktop-size, 18px);
  line-height: var(--stp-type-lead-desktop-line, 28px);
  font-weight: 400;
  letter-spacing: 0;
}
.lead-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-lead-mobile-size, 18px);
  line-height: var(--stp-type-lead-mobile-line, 28px);
  font-weight: 400;
  letter-spacing: 0;
}
.body-desktop {
  font-family: var(--font-sans);
  font-size: var(--stp-type-body-desktop-size, 16px);
  line-height: var(--stp-type-body-desktop-line, 28px);
  font-weight: 400;
  letter-spacing: 0;
}
.body-mobile {
  font-family: var(--font-sans);
  font-size: var(--stp-type-body-mobile-size, 16px);
  line-height: var(--stp-type-body-mobile-line, 28px);
  font-weight: 400;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: var(--stp-type-small-size, 14px);
  line-height: var(--stp-type-small-line, 22px);
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: var(--stp-type-label-size, 11px);
  line-height: var(--stp-type-label-line, 18.15px);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.caption {
  font-family: var(--font-sans);
  font-size: var(--stp-type-caption-size, 13px);
  line-height: var(--stp-type-caption-line, 18px);
  font-weight: 400;
  letter-spacing: 0;
}
.overline {
  font-family: var(--font-sans);
  font-size: var(--stp-type-overline-size, 12px);
  line-height: var(--stp-type-overline-line, 28px);
  font-weight: 600;
  letter-spacing: 0;
}
.button {
  font-family: var(--font-sans);
  font-size: var(--stp-type-button-size, 16px);
  line-height: var(--stp-type-button-line, 24px);
  font-weight: 600;
  letter-spacing: 0;
}
.nav {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0;
}
.code {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.data {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
