/* GeroInfra design tokens — AgingLab green. Light + dark. */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('/static/fonts/PretendardVariable.woff2') format('woff2-variations'),
       url('/static/fonts/PretendardVariable.woff2') format('woff2');
}

:root {
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, 'D2Coding', monospace;

  /* brand */
  --brand: #1F7A52;
  --brand-strong: #14603F;
  --brand-deep: #0F3D2B;
  --brand-mint: #3DDC97;
  --brand-soft: #E3F3EA;
  --brand-grad: linear-gradient(135deg, #1F7A52 0%, #2FA36B 55%, #3DDC97 100%);

  /* surfaces (light) */
  --bg: #F3F6F4;
  --bg-elev: #FFFFFF;
  --bg-sunken: #EAEFEC;
  --surface: #FFFFFF;
  --surface-2: #F7FAF8;
  --surface-3: #EEF3F0;
  --glass: rgba(255, 255, 255, 0.72);
  --border: #DCE5E0;
  --border-strong: #C5D3CB;
  --text: #13201A;
  --text-2: #3E5148;
  --text-3: #6B7D74;
  --text-inv: #FFFFFF;
  --link: #1F7A52;
  --focus: #3DDC97;
  --grid-line: rgba(15, 61, 43, 0.06);

  /* live state colors */
  --st-up: #16A34A;
  --st-degraded: #E59A0B;
  --st-down: #E5383B;
  --st-unknown: #7C8B95;
  --st-planned: #7C83F2;
  --st-maintenance: #2E9BD6;
  --st-retired: #9AA5AE;

  /* categories */
  --cat-infra: #2FA36B;
  --cat-internal_use: #14A3A0;
  --cat-internal_research: #4C86E8;
  --cat-external: #9A6CF0;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(16, 40, 30, 0.06), 0 1px 1px rgba(16, 40, 30, 0.04);
  --shadow: 0 4px 16px rgba(16, 40, 30, 0.07), 0 1px 3px rgba(16, 40, 30, 0.06);
  --shadow-lg: 0 18px 50px rgba(16, 40, 30, 0.16), 0 4px 12px rgba(16, 40, 30, 0.08);
  --glow-brand: 0 0 0 1px rgba(47, 163, 107, 0.25), 0 8px 30px rgba(47, 163, 107, 0.18);

  --sidebar-w: 248px;
  --topbar-h: 64px;
  --tabbar-h: 64px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 180ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #2FA36B;
  --brand-strong: #3DDC97;
  --brand-deep: #0B2A1E;
  --brand-soft: rgba(61, 220, 151, 0.12);

  --bg: #07110D;
  --bg-elev: #0C1913;
  --bg-sunken: #050C09;
  --surface: #0F1D17;
  --surface-2: #13241D;
  --surface-3: #182C24;
  --glass: rgba(14, 28, 22, 0.72);
  --border: #1D3229;
  --border-strong: #2A463A;
  --text: #E7F2EC;
  --text-2: #B3C7BD;
  --text-3: #7F968B;
  --text-inv: #07110D;
  --link: #3DDC97;
  --grid-line: rgba(61, 220, 151, 0.05);

  --st-up: #2EE07F;
  --st-degraded: #FFB020;
  --st-down: #FF5A5F;
  --st-unknown: #8796A0;
  --st-planned: #9AA0FF;
  --st-maintenance: #4FB6F0;
  --st-retired: #6E7A83;

  --cat-infra: #3DCB86;
  --cat-internal_use: #2CC7C2;
  --cat-internal_research: #6EA3FF;
  --cat-external: #B48CFF;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
  --glow-brand: 0 0 0 1px rgba(61, 220, 151, 0.25), 0 10px 40px rgba(61, 220, 151, 0.12);
  color-scheme: dark;
}

@media (max-width: 900px) {
  :root { --gutter: 16px; --topbar-h: 56px; }
}
