/* Design tokens: the only place colours, type, spacing and radii are defined.
   The look is inspired by Apple's design language (clean surfaces, system type, generous space).
   No Apple assets, icons or font files are used: the font is whatever the visitor's system provides.
   Light is the default theme. */

:root,
[data-theme="light"] {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-surface: #f5f5f7;
  --color-elevated: #ffffff;
  --color-surface-2: #e8e8ed;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-border: #d2d2d7;
  --color-hairline: rgb(0 0 0 / 10%);
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-accent-contrast: #ffffff;
  --color-link: #0066cc;
  --color-accent-soft: #e8f2fd;
  --color-button-secondary: #e8e8ed;
  --color-button-secondary-hover: #dcdce1;
  --color-brand: #1d1d1f;
  --color-brand-contrast: #ffffff;
  --color-logo: #094df6;
  --color-done: #5e5e63;
  --color-done-soft: #ececf0;
  --color-next: #b64400;
  --color-next-soft: #fff1e0;
  --color-purple: #7a32b0;
  --color-purple-soft: #f4ecfb;
  --color-focus: #0071e3;
  --color-notice-bg: #fff6dc;
  --color-notice-text: #5c4300;
  --glass-bg: rgb(255 255 255 / 72%);
  --glass-border: rgb(255 255 255 / 60%);
  --hero-glow: rgb(0 113 227 / 7%);
  --avatar-from: #a1a1a6;
  --avatar-to: #636366;
  --shadow-card: 0 2px 6px rgb(0 0 0 / 4%), 0 12px 32px rgb(0 0 0 / 8%);
  --shadow-soft: 0 4px 14px rgb(0 0 0 / 6%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #000000;
  --color-surface: #161617;
  --color-elevated: #1d1d1f;
  --color-surface-2: #333336;
  --color-text: #f5f5f7;
  --color-text-muted: #a1a1a6;
  --color-border: #424245;
  --color-hairline: rgb(255 255 255 / 14%);
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-accent-contrast: #ffffff;
  --color-link: #2997ff;
  --color-accent-soft: #0c2440;
  --color-button-secondary: #333336;
  --color-button-secondary-hover: #424245;
  --color-brand: #f5f5f7;
  --color-brand-contrast: #1d1d1f;
  --color-logo: #5b87ff;
  --color-done: #a1a1a6;
  --color-done-soft: #2a2a2d;
  --color-next: #ff9f0a;
  --color-next-soft: #2e1f08;
  --color-purple: #d0a8f5;
  --color-purple-soft: #2a1a3a;
  --color-focus: #2997ff;
  --color-notice-bg: #3a2e0c;
  --color-notice-text: #fbe7b0;
  --glass-bg: rgb(22 22 23 / 72%);
  --glass-border: rgb(255 255 255 / 10%);
  --hero-glow: rgb(41 151 255 / 16%);
  --avatar-from: #6e6e73;
  --avatar-to: #3a3a3c;
  --shadow-card: 0 2px 6px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 45%);
  --shadow-soft: 0 4px 14px rgb(0 0 0 / 35%);
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.875rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.3125rem;
  --text-xl: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.4vw, 3rem);
  --text-3xl: clamp(2.75rem, 1.5rem + 4.8vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(4rem, 2.75rem + 4.5vw, 7.5rem);

  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  --container: 1080px;
  --header-height: 3.25rem;

  /* Host mode (the host bar and the floating Host button): the same in both themes, so it always stands out. */
  --color-host-bg: #3a1d5e;
  --color-host-text: #ffffff;
  --color-host-line: rgb(255 255 255 / 38%);
  --color-host-hover: rgb(255 255 255 / 14%);
  --color-host-accent: #f3e8ff;
  --color-host-accent-text: #3a1d5e;
  --color-host-now: #ffd60a;
  --color-host-now-text: #1d1d1f;

  /* Table colours on the table-groups big screen (always dark): high contrast on #1d1d1f. */
  --color-table-1: #3d9bff;
  --color-table-2: #3ccf6a;
  --color-table-3: #ffa31a;
  --color-table-4: #c36cf0;
  --color-table-5: #ff5c78;
  --color-table-6: #5ccfef;
  --color-table-7: #f5cf2a;
  --color-table-8: #c9a27e;
}

/* ---------- Ignite Highlights additions ----------
   Everything above is copied verbatim from erfahub.com (site/app/tokens.css) so the event page
   looks like ERFA Hub. Only the broadcast flavour below is specific to ignite.erfahub.com. */
:root,
[data-theme="light"] {
  --color-live: #d70015;
  --color-live-soft: #fdecee;
}
[data-theme="dark"] {
  --color-live: #ff453a;
  --color-live-soft: #3a1210;
}
:root { --color-live-contrast: #ffffff; }
