/* ══════════════════════════════════════════════════
   iTracker — Spacing & radius tokens
   ★ 本檔即 token 值正本（iTracker Design System 套件），改這裡＋升版（design-system/ds.json、CHANGELOG）。
     tracker 於建置時複製到 wwwroot/css/ds/（勿手改該處），由 Pages/Shared/_DesignTokens.cshtml 在 site.css 之前載入。

   Spacing: strict 4px base grid (Linear). --space-0_5 = 2px is the
   ONLY exception (badge/chip inner padding, thin indicator bars).
   1px hairlines and >40px layout gaps live outside this system.
   Spacing tokens never switch with theme.
   Radii: Linear-aligned even ladder 4/6/8/12. Nested corners stay
   concentric: inner radius < outer radius.
   ══════════════════════════════════════════════════ */
:root {
  --space-0_5: 2px;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;

  /* ── 表格/列高（2026-10 Linear：隨 data-fs 三檔縮放，不隨主題切換）── */
  --row-data:       40px;   /* 標準列表資料列（list-row / issue-table / 報價表）*/
  --row-data-dense: 40px;   /* 甘特/負載資料列（固定不縮放：schedule-view.js ROW_H=40 依此對齊）*/
  --row-axis:       20px;   /* 甘特/負載時間軸刻度行（月/日/星期）*/
  --row-group:      36px;   /* 分組/組別標題列最小高 */
  --ctl-h:          28px;   /* 工具列階：工具列／清單列內／篩選列的按鈕、分段切換、下拉、輸入框 */
  --ctl-h-lg:       32px;   /* 表單階：表單／設定頁／modal 內的輸入框、下拉，及同列按鈕 */
  --page-hd-h:      44px;   /* 頁首列（麵包屑＋搜尋＋主要按鈕），全站固定、不隨字級 */
  --page-tb-h:      40px;   /* 頁首下方工具列（檢視切換／篩選／顯示）*/

  --r-xs:   4px;     /* small buttons, icon buttons, badges, view-btn */
  --r-sm:   6px;     /* buttons, inputs, small components */
  --r-md:   8px;     /* inner cards, list panels, block containers */
  --r-lg:   12px;    /* outer cards, modal */
  --r-pill: 999px;   /* 標籤（badge）、計數膠囊 */
}

html[data-fs="sm"] { --row-data: 36px; --row-group: 32px; --ctl-h: 26px; --ctl-h-lg: 30px; }
html[data-fs="lg"] { --row-data: 44px; --row-group: 40px; --ctl-h: 32px; --ctl-h-lg: 36px; }
