/* ArchaeoScope Single-Report Pilot · Disciplined 4-Layer Archival Design System */
:root {
  /* Layer 1: Neutral archival surfaces & ink */
  --ink: #1e2624;
  --ink-soft: #3c4744;
  --muted: #68736f;
  --line: #d4d8d2;
  --fine: #e5e8e2;
  --bg: #eff0eb;
  --paper: #faf9f5;
  --card: #ffffff;
  --mast: #1e2d2b;

  /* Layer 2: Single interactive focus accent */
  --accent: #23645c;
  --accent-soft: #e6f0ee;
  --accent-border: #adc9c4;
  --teal: var(--accent);
  --teal-soft: var(--accent-soft);
  --brass: #a89878;
  --brass-soft: #e3dac8;

  /* Universal document structure grayscale (chapters & figure/table marks) */
  --chap-0: #f2f3f0;
  --chap-1: #e4e7e4;
  --chap-2: #d8dcd9;
  --chap-3: #e7eae7;
  --chap-4: #f0f2ef;
  --chap-divider: #555f5c;
  --glyph-fig-photo: #28302d;        /* Deep dark gray solid circle ● = Photograph (实拍照片) */
  --glyph-fig-line: #a4ada9;         /* Soft light gray solid circle ● (light fill & stroke, NO dark stroke) = Line drawing (线稿/线图) */
  --glyph-fig-line-border: #9ba4a0;  /* Matching light-gray hairline stroke (never dark) */
  --glyph-fig: var(--glyph-fig-photo);
  --glyph-tbl: #4b5552;              /* Neutral gray small square ■ = Table (统计表格) */

  /* Layer 3: Strictly reserved semantic status hues (NEVER for general categories) */
  --conflict: #c0292b;
  --conflict-bg: #fdf0ef;
  --review: #9c6311;
  --review-bg: #fcf6e8;
  --review-border: #e4cca0;
  --note-bg: #f4f5f2;
  --note-border: #d5dad5;
  --repair: #6b4c8a;
  --repair-bg: #f4eff9;

  /* Layer 4: Scoped analytical chart palette (Mode 3 charts & legended views only; NO red, NO violet) */
  --cat-1: #2b6f68;
  --cat-2: #3b6998;
  --cat-3: #b8822c;
  --cat-4: #6e854b;
  --cat-5: #8c6a4a;
  --cat-6: #5c7080;
  --cat-neutral: #848b88;

  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 35, 32, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* Pure reading mode (V1-04) */
body.pure-reading .sem-chip {
  background: transparent !important;
  border-bottom: none !important;
  color: inherit !important;
  padding: 0 !important;
}
body.pure-reading .pdf-overlay-svg { opacity: 0 !important; pointer-events: none !important; }
body.pure-reading .conflict-inline-note { display: none !important; }

