/* Buzz audience tokens belong to this canonical theme stack. Do not use CSS imports: the page bundles concatenate these files. */
:root {
  --buzz-customer-accent:#0f766e;
  --buzz-customer-surface:#e9f7f4;
  --buzz-internal-accent:#4f46a5;
}
.dark-theme, [data-portal-theme="dark"] {
  --buzz-customer-accent:#74d9c7;
  --buzz-customer-surface:#153b37;
  --buzz-internal-accent:#beb6ff;
}

/* Instrument Sans (variable). Declared axis is the font's real range (wght 400-700): stating a
   wider range would make the browser synthesize faux-bold above 700 instead of clamping. */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --portal-font: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type-weight scale: 4 steps, 100 apart, all within the font's 400-700 axis and all
     perceptibly distinct. Deliberately no micro-steps (650/680 vs 700 do not read at UI
     sizes) — finer hierarchy is carried by size and colour, not weight. */
  --portal-weight-body: 400;
  --portal-weight-muted: 500;
  --portal-weight-medium: 600;
  --portal-weight-strong: 700;
  --portal-canvas: #ffffff;
  --portal-bg: #f1f1ef;          /* 2026-09-14: was #f9f9f8 - too close to the card colour; white cards now lift off it */
  --portal-bg-elevated: #ffffff; /* 2026-09-14: was #fdfdfc */
  --portal-bg-subtle: #f3f3f2;
  --portal-bg-hover: #eeeeec;
  --portal-bg-active: #e9e9e6;
  --portal-text: #1b1b18;
  --portal-text-soft: #51514c;
  --portal-text-muted: #706f6c;
  --portal-border: #e3e3e0;
  --portal-border-strong: #c8c7c1;
  --portal-accent: #4c81ee;
  --portal-accent-strong: #315dbd;
  --portal-accent-soft: #edf3ff;
  --portal-accent-contrast: #ffffff;
  --portal-action: #3f6fd8;
  --portal-action-hover: #3564ca;
  --portal-action-active: #315dbd;
  --portal-action-contrast: #ffffff;
  --portal-success: #087a55;
  --portal-success-soft: #e8f5ef;
  --portal-warning: #8a4b08;
  --portal-warning-soft: #fff4dd;
  --portal-warning-border: #e4c692;
  /* 2026-11-10: the header is light - white with a hairline - to match the open, white pages beneath it
     (it was a near-black bar). The dark theme below keeps its own dark header. */
  --portal-header: #ffffff;
  --portal-header-surface: #f3f3f2;
  --portal-header-hover: #e9e9e6;
  --portal-header-active: #e3e3e0;
  --portal-header-border: #e3e3e0;
  --portal-header-text: #1b1b18;
  --portal-header-muted: #706f6c;
  --portal-header-inverse: #1b1b18;
  --portal-header-inverse-text: #f3f3f2;
  --portal-danger: #b42318;
  --portal-tone-blue: #517ab6;
  --portal-tone-blue-bright: #4c81ee;
  --portal-tone-green: #62aa49;
  --portal-tone-orange: #d88600;
  --portal-tone-red: #b8373b;
  --portal-tone-purple: #8a5a99;
  --portal-tone-teal: #00897b;
  --portal-radius-sm: 6px;
  --portal-radius-md: 8px;
  --portal-radius-lg: 12px;
  --portal-focus-ring: 0 0 0 2px #ffffff, 0 0 0 5px #4c81ee;
  --portal-space-1: 8px;
  --portal-space-2: 16px;
  --portal-space-3: 24px;
  --portal-space-4: 32px;
  --portal-space-5: 40px;
  --portal-space-6: 48px;
  --portal-space-8: 64px;
}

[data-portal-theme="dark"] {
  color-scheme: dark;
  --portal-canvas: #161615;
  --portal-bg: #161615;
  --portal-bg-elevated: #1c1c1a;
  --portal-bg-subtle: #232320;
  --portal-bg-hover: #282826;
  --portal-bg-active: #2e2e2b;
  --portal-text: #ededec;
  --portal-text-soft: #c8c7c2;
  --portal-text-muted: #a1a09a;
  --portal-border: #353431;
  --portal-border-strong: #51504b;
  --portal-accent: #7ea8ff;
  --portal-accent-strong: #91b5ff;
  --portal-accent-soft: #20345e;
  --portal-accent-contrast: #1b1b18;
  --portal-action: #7ea8ff;
  --portal-action-hover: #91b5ff;
  --portal-action-active: #6f9bf2;
  --portal-action-contrast: #1b1b18;
  --portal-header: #111110;
  --portal-header-surface: #1c1c1a;
  --portal-header-hover: #232320;
  --portal-header-active: #2e2e2b;
  --portal-header-border: #353431;
  --portal-header-text: #ededec;
  --portal-header-muted: #a1a09a;
  --portal-header-inverse: #ededec;
  --portal-header-inverse-text: #1b1b18;
  --portal-success: #62d4a6;
  --portal-success-soft: #20382f;
  --portal-warning: #f3bd6a;
  --portal-warning-soft: #3b3020;
  --portal-warning-border: #6b4d2a;
  --portal-danger: #ff8b83;
  --portal-tone-blue: #79a8ed;
  --portal-tone-blue-bright: #7ea8ff;
  --portal-tone-green: #82cd70;
  --portal-tone-orange: #f0ad3c;
  --portal-tone-red: #e16c70;
  --portal-tone-purple: #bc8bcc;
  --portal-tone-teal: #4fc2b5;
  --portal-focus-ring: 0 0 0 2px #161615, 0 0 0 5px #7ea8ff;
}
