/* SolarFlow AI POC — reset + base typography + utilities */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; }
strong { font-weight: 600; }
small { font-size: 12px; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-s); }
::selection { background: var(--green-150); }

/* Scrollbars (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--mut-2); }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- utilities ---------- */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.mut { color: var(--mut); }
.mut2 { color: var(--mut-2); }
.sm { font-size: 12px; }
.xs { font-size: 11px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex { display: flex; align-items: center; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.green { color: var(--green-700); }
.gold { color: var(--leaf-deep); }
.amber { color: var(--amber); }
.red { color: var(--red); }

/* icon sizing — icons.js injects svg into [data-icon] spans */
.ic { display: inline-flex; flex: none; width: 18px; height: 18px; vertical-align: -4px; }
.ic svg { width: 100%; height: 100%; }
.ic-s { width: 14px; height: 14px; vertical-align: -2px; }
.ic-l { width: 22px; height: 22px; }
.ic-xl { width: 28px; height: 28px; }

/* lock marker for internal-only figures */
.lockd { display: inline-flex; align-items: center; gap: 4px; }
.lockd .ic { width: 12px; height: 12px; color: var(--mut-2); }

/* divider */
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* keyboard-ish code chips */
.code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
