/* Spanwise theme (Structoze). Loaded LAST: it only remaps the colour tokens of
   style.css and ux.css. No layout, no ids: calculation UI and outputs are unchanged.
   Warm Structoze neutrals (hue ~60) replace the cool blue ones (hue 258); the
   accent ramp becomes Structoze orange (hue ~42). The --blue-* names are kept
   because every existing rule refers to them. Warnings move to amber so they
   never read as the brand orange. */

:root {
  /* style.css — dark (default) */
  --bg:          oklch(15.5% 0.008 60);
  --surface-1:   oklch(18% 0.009 60);
  --surface-2:   oklch(19.5% 0.009 60);
  --surface-3:   oklch(22.5% 0.01 60);
  --border:      oklch(31% 0.012 60);
  --border-dim:  oklch(28% 0.011 60 / 0.6);
  --border-dim2: oklch(27% 0.01 60 / 0.6);

  --blue-900:    oklch(30% 0.10 42);
  --blue-800:    oklch(38% 0.13 42);
  --blue-700:    oklch(48% 0.16 42);
  --blue-600:    oklch(55% 0.18 42);
  --blue-500:    oklch(64% 0.19 44);
  --blue-400:    oklch(71% 0.16 48);
  --blue-300:    oklch(79% 0.12 52);
  --blue-200:    oklch(86% 0.08 56);

  --accent-label: oklch(68% 0.15 46);
  --warning:     #eab308;

  --text:        oklch(92% 0.006 70);
  --text-bright: oklch(97% 0.004 70);
  --text-muted:  oklch(68% 0.01 65);
  --text-muted-2: oklch(70% 0.01 65);
  --text-dim:    oklch(52% 0.012 65);

  /* ux.css — dark (default) */
  --ux-bg: #12100E;
  --ux-surface: #1B1815;
  --ux-border: #2E2924;
  --ux-border-input: #6A6159;
  --ux-text: #F2EEE9;
  --ux-text-label: #D3CBC2;
  --ux-text-muted: #ADA49A;
  --ux-accent: #FB923C;
  --ux-accent-fill: #C2410C;
  --ux-warn: #EAB308;  --ux-warn-text: #FACC15;
}

[data-theme="light"] {
  /* style.css — light */
  --bg:          oklch(97.6% 0.004 75);
  --surface-1:   oklch(99.2% 0.003 75);
  --surface-2:   oklch(100% 0 0);
  --surface-3:   oklch(96.5% 0.006 70);
  --border:      oklch(88% 0.012 70);
  --border-dim:  oklch(91% 0.009 70 / 0.9);
  --border-dim2: oklch(92% 0.008 70 / 0.9);

  --blue-200:    oklch(40% 0.13 42);
  --blue-300:    oklch(46% 0.15 42);
  --blue-400:    oklch(52% 0.17 42);
  --accent-label: oklch(50% 0.16 42);

  --text:        oklch(27% 0.012 60);
  --text-bright: oklch(16% 0.01 60);
  --text-muted:  oklch(46% 0.014 60);
  --text-muted-2: oklch(43% 0.014 60);
  --text-dim:    oklch(58% 0.012 60);

  /* ux.css — light */
  --ux-bg: #FAF8F5;
  --ux-surface: #FFFFFF;
  --ux-border: #E3DDD5;
  --ux-border-input: #8A8077;
  --ux-text: #14110F;
  --ux-text-label: #3A342E;
  --ux-text-muted: #5C554E;
  --ux-accent: #C2410C;
  --ux-accent-fill: #C2410C;
  --ux-warn: #CA8A04;  --ux-warn-text: #A16207;
}

/* Product wordmark in the header (hidden when a team's own logo is shown). */
.product-mark { display: inline-flex; align-items: center; flex: none; margin-right: 10px; }
.product-mark img { height: 26px; width: auto; display: block; }
.product-mark .pm-light { display: none; }
[data-theme="light"] .product-mark .pm-dark { display: none; }
[data-theme="light"] .product-mark .pm-light { display: block; }
.product-mark[hidden] { display: none; }

/* Sign-in page */
.ln-wordmark { height: 34px; width: auto; display: block; margin-bottom: 18px; }
.ln-wordmark.pm-light { display: none; }
[data-theme="light"] .ln-wordmark.pm-dark { display: none; }
[data-theme="light"] .ln-wordmark.pm-light { display: block; }
.ln-madeby img.ln-structoze { height: 22px; width: auto; }

/* Sign-in brand panel: Structoze ink instead of navy, orange drafting grid. */
.ln-page {
  --ln-navy: #14110F;
  --ln-navy-2: #1F1B17;
  --ln-ink: #F2EEE9;
  --ln-ink-2: #C9C2BA;
  --ln-accent: #FB923C;
}
.ln-hero {
  background-image:
    linear-gradient(rgb(251 146 60 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(251 146 60 / 0.06) 1px, transparent 1px);
}
.ln-submit:hover:not(:disabled) { background: var(--blue-800); }
