/* ============================================
   common.css — shared tokens, base, typography
   ============================================ */

:root {
  /* Surface */
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e3e8f0;

  /* Ink */
  --ink: #0f2540;
  --ink-2: #3b4c63;
  --ink-3: #6b7a90;

  /* Brand */
  --brand-900: #0b3a6b;
  --brand-700: #1564b0;
  --brand-500: #2a86d6;
  --brand-100: #e2effb;
  --brand-50:  #f0f7fe;

  /* Accent (warm amber) */
  --accent: #d97a3a;
  --accent-soft: #fbecdc;

  /* Status — mint */
  --mint: #2f8f6b;
  --mint-soft: #d9efe5;

  /* Sidebar palette */
  --side-bg:    #0c3a6b;
  --side-bg-2:  #0a3056;
  --side-line:  rgba(255,255,255,.08);
  --side-ink:   rgba(255,255,255,.92);
  --side-ink-2: rgba(255,255,255,.65);
  --side-ink-3: rgba(255,255,255,.45);
  --side-hover: rgba(255,255,255,.06);
  --side-active:rgba(255,255,255,.12);

  /* Shape */
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15,37,64,.04), 0 2px 6px rgba(15,37,64,.04);
  --shadow-md: 0 4px 14px rgba(15,37,64,.06), 0 12px 32px rgba(15,37,64,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 圖片不超出容器（避免內容圖造成水平溢出） */
img { max-width: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

.num {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-feature-settings: "tnum";
}

/* ───── Shared Header (hero variant on landing, compact on dashboard) ───── */
.site-header {
  background:
    radial-gradient(900px 360px at 90% -10%, rgba(255,178,120,.28), transparent 60%),
    radial-gradient(700px 420px at 70% 120%, rgba(120,190,245,.35), transparent 60%),
    linear-gradient(110deg, #0a3a73 0%, #11539a 45%, #1f6cb8 80%, #2a86d6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 25% 50%, black 25%, transparent 75%);
  pointer-events: none;
}

.logo {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.logo img { width: 26px; height: 26px; }
