/* Theme contract: visual choices live here; layouts consume semantic tokens. */
:root {
  color-scheme: light;
  --color-bg: #f6f7f5;
  --color-surface: #ffffff;
  --color-surface-subtle: #f0f3ef;
  --color-text: #2f3c38;
  --color-muted: #5c6b63;
  --color-border: #dfe5df;
  --color-primary: #426458;
  --color-primary-hover: #365347;
  --color-on-primary: #ffffff;
  --color-primary-soft: #e7eee8;
  --color-warning: #795b2c;
  --color-warning-soft: #faf2e2;
  --color-error: #a14337;
  --color-error-soft: #f9ece9;
  --color-focus: #ad783b;
  --font-body: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-number: Georgia, 'Times New Roman', serif;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-title: clamp(1.5rem, 2vw, 1.75rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --radius-sm: 5px;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow: 0 8px 32px rgb(25 40 30 / 7%);
  --content-width: 1480px;
  --nav-width: 184px;
  --detail-width: 310px;
  --header-height: 76px;
  --page-gutter: 24px;
  --section-gap: 24px;
  --control-height: 44px;
  --reading-width: 808px;
}

/* Online theme based on the approved A import workspace. */
.martz-online {
  --color-bg: #f1f5fa;
  --color-surface: #fff;
  --color-surface-subtle: #f5f7f9;
  --color-surface-page: #f8fbfe;
  --color-text: #23354a;
  --color-muted: #51677d;
  --color-border: #dce6ef;
  --color-control-edge: #4a91c1;
  --color-primary: #17649c;
  --color-primary-hover: #0f4c81;
  --color-primary-soft: #eaf4ff;
  --color-primary-tint: #dceeff;
  --color-success: #256551;
  --color-success-soft: #e8f5ee;
  --color-pending: #7f4f16;
  --color-pending-soft: #fff2dc;
  --color-tag: #4b367d;
  --color-tag-soft: #f0edf9;
  --color-warning: #a65032;
  --color-warning-soft: #fff0e7;
  --color-error: #a65032;
  --color-error-soft: #fff0e7;
  --color-focus: #2685c4;
  --font-body: "IBM Plex Sans Var", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-number: "IBM Plex Sans Var", sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --header-height: 80px;
  --nav-width: 184px;
  --control-height: 44px;
  --panel-padding: clamp(12px, 1.6vw, 18px);
  --drop-edge: #81add3;
  --page-gutter: clamp(16px, 2vw, 28px);
  --section-gap: var(--space-4);
}
