/**
 * Quantierra UI tokens: legacy names only.
 *
 * The theme lives in assets/tailwind/theme.css (one brand ramp, semantic surface, text,
 * border, status and link tokens, each with its dark value). This sheet only aliases the
 * Rails-era custom-property names to those tokens, so nothing here defines a colour of its
 * own (craft finding 9, 2026-11-20). It loads after the Tailwind sheet, so it must never
 * redefine a theme name (it once set --color-border-strong and silently won).
 */

:root {
  /* Surfaces */
  --color-surface-canvas: var(--color-surface-1);
  --color-surface-primary: var(--color-surface-2);
  --color-surface-secondary: var(--color-surface-3);
  --color-surface-elevated: var(--color-surface-2);

  /* Accent: the brand ramp */
  --color-accent-primary: var(--color-link);
  --color-accent-muted: var(--color-brand-300);

  /* Text */
  --color-text-primary: var(--color-fg-1);
  --color-text-secondary: var(--color-fg-2);
  --color-text-tertiary: var(--color-fg-3);
  --color-text-link: var(--color-link);

  /* Borders */
  --color-border-default: var(--color-border);
  --color-border-subtle: var(--color-border);
  --color-border-focus: var(--color-focus);

  /* Status */
  --color-status-success: var(--color-success-solid);
  --color-status-success-muted: var(--color-success-tint);
  --color-status-warning: var(--color-warning-solid);
  --color-status-warning-muted: var(--color-warning-tint);
  --color-status-danger: var(--color-danger-solid);
  --color-status-danger-muted: var(--color-danger-tint);
  --color-status-info: var(--color-info-solid);
  --color-status-info-muted: var(--color-info-tint);

  /* Map data layers: the map's own palette, not UI colour (maps/src/pages.rs). */
  --color-map-primary: #ff7800; /* Orange - primary data layer */
  --color-map-secondary: #ff00ff; /* Magenta - secondary data layer */
  --color-map-tertiary: #007ba7; /* Teal - tertiary data layer */
  --color-map-background: #e9e8e0; /* Beige - map background */
  --color-map-highlight: #22c55e; /* Green - highlighted features */

  /* Motion (the map pushmenu's transition) */
  --motion-duration-long: 300ms;
  --motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* Focus */
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-focus);
}

/* ==========================================================================
   Sidebar Logo
   ========================================================================== */

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sidebar-logo .logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

/* Light sidebar variant */
[data-qre-component="sidebar"][data-variant="light"] .logo-text {
  color: var(--color-fg-1);
}
