@bytesbybrandon/living-docs 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Brandon D. Phillips
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brandon D. Phillips
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,144 +1,144 @@
1
- # living-docs
2
-
3
- [![CI](https://github.com/bytesbybrandon/living-docs/actions/workflows/ci.yml/badge.svg)](https://github.com/bytesbybrandon/living-docs/actions/workflows/ci.yml)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
-
6
- Turns a source document into a designed, self-contained HTML doc in one of three styles: an academic paper, dark reading notes, or a telemetry console.
7
- Ships an AXI CLI and a stdio MCP server over the same core.
8
-
9
- ---
10
-
11
- ### Key Features
12
-
13
- * **Three themes:** `paper-light` for papers and reports, `paper-dark` for reading notes and essays, `hud` for repo audits and system snapshots.
14
- * **Generated visuals:** diagrams and charts render as inline SVG from a compact spec, and the console hero uses a seeded graph layout.
15
- * **Per-source style tokens:** palette, seed color, type pairing, density, and figure treatment adapt a theme without arbitrary CSS. See [Style tokens](docs/guide/style-tokens.md).
16
- * **One self-contained file:** inline CSS, inline SVG, no network assets, and print rules. See [Guarantees](docs/guide/guarantees.md).
17
- * **Engine and interfaces:** the same core powers the CLI and the MCP server.
18
-
19
- ### Tech Stack
20
-
21
- * **Language:** JavaScript on Node.js 20 or newer, ECMAScript modules.
22
- * **Rendering:** no UI framework and no build step; blocks, SVG, and theme CSS are plain JavaScript.
23
- * **Dependencies:** `@modelcontextprotocol/sdk` for the MCP server and `unpdf` for PDF text extraction.
24
- * **Tests:** the Node.js built-in test runner.
25
-
26
- ### Table of Contents
27
-
28
- 1. [Getting Started](#getting-started)
29
- 2. [Usage](#usage)
30
- 3. [Running Tests](#running-tests)
31
- 4. [Project Structure](#project-structure)
32
- 5. [Contributing](#contributing)
33
- 6. [License](#license)
34
-
35
- ---
36
-
37
- ### Getting Started
38
-
39
- Install the package globally or run it without installing.
40
-
41
- #### Prerequisites
42
-
43
- * Node.js 20 or newer.
44
- * npm 10 or newer.
45
-
46
- #### Installation
47
-
48
- 1. **Install from npm:**
49
- ```bash
50
- npm install -g @bytesbybrandon/living-docs
51
- ```
52
- 2. **Or clone the repository:**
53
- ```bash
54
- git clone https://github.com/bytesbybrandon/living-docs.git
55
- cd living-docs
56
- ```
57
- 3. **Install dependencies for a checkout:**
58
- ```bash
59
- npm install
60
- ```
61
- 4. **Environment setup:** none. The engine reads files and URLs only.
62
-
63
- ---
64
-
65
- ### Usage
66
-
67
- #### Running Locally
68
-
69
- Render the bundled samples:
70
-
71
- ```bash
72
- npm run samples
73
- ```
74
-
75
- That writes one HTML file per sample model into `docs/`.
76
-
77
- #### Code Example
78
-
79
- ```bash
80
- node bin/living-docs-axi.js ingest samples/source/harness-notes.md --draft --theme paper-dark -o docs/note.model.json
81
- node bin/living-docs-axi.js render docs/note.model.json --theme paper-dark -o docs/note.html
82
- node bin/living-docs-axi.js preview docs
83
- ```
84
-
85
- With the published package, use `npx -y -p @bytesbybrandon/living-docs living-docs-axi` for each command.
86
-
87
- Detailed references:
88
-
89
- * [Pipeline](docs/guide/pipeline.md)
90
- * [CLI reference](docs/guide/cli.md)
91
- * [Document model](docs/guide/document-model.md)
92
- * [Style tokens](docs/guide/style-tokens.md)
93
- * [MCP server](docs/guide/mcp.md)
94
- * [Reactive workflow](docs/guide/reactive-workflow.md)
95
- * [Guarantees](docs/guide/guarantees.md)
96
- * [Architecture](ARCHITECTURE.md)
97
- * [Decisions](docs/decisions/0001-one-model-three-themes.md)
98
-
99
- ---
100
-
101
- ### Running Tests
102
-
103
- ```bash
104
- npm test
105
- ```
106
-
107
- The suite covers rendering determinism and self-containment, escaping and link sanitization, schema validation, ingest of Markdown, HTML, and text, CLI behavior and exit codes, an in-memory MCP client round trip, and style token resolution.
108
-
109
- ---
110
-
111
- ### Project Structure
112
-
113
- ```text
114
- living-docs/
115
- bin/ CLI and MCP entry points
116
- src/
117
- axi/ command parsing, compact output, file writes, preview
118
- ingest/ Markdown, text, HTML, URL, and PDF intake
119
- mcp/ stdio MCP server and tool definitions
120
- model/ document model schema, validator, safe inline Markdown
121
- render/ block renderers, SVG generators, style resolution, themes
122
- server/ local preview server
123
- samples/ sample models and one Markdown source
124
- scripts/ sample build script
125
- tests/ Node test runner suites
126
- docs/
127
- decisions/ architecture decision records
128
- guide/ user and contributor guides
129
- ```
130
-
131
- ---
132
-
133
- ### Contributing
134
-
135
- Contributions are welcome.
136
- Read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the fork, branch, test, and pull request workflow.
137
- Repository agent rules live in [AGENTS.md](AGENTS.md), and module boundaries live in [ARCHITECTURE.md](ARCHITECTURE.md).
138
-
139
- ---
140
-
141
- ### License
142
-
143
- Released under the MIT License.
144
- See [LICENSE](LICENSE).
1
+ # living-docs
2
+
3
+ [![CI](https://github.com/bytesbybrandon/living-docs/actions/workflows/ci.yml/badge.svg)](https://github.com/bytesbybrandon/living-docs/actions/workflows/ci.yml)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
+
6
+ Turns a source document into a designed, self-contained HTML doc in one of three styles: an academic paper, dark reading notes, or a telemetry console.
7
+ Ships an AXI CLI and a stdio MCP server over the same core.
8
+
9
+ ---
10
+
11
+ ### Key Features
12
+
13
+ * **Three themes:** `paper-light` for papers and reports, `paper-dark` for reading notes and essays, `hud` for repo audits and system snapshots.
14
+ * **Generated visuals:** diagrams and charts render as inline SVG from a compact spec, and the console hero uses a seeded graph layout.
15
+ * **Per-source style tokens:** palette, seed color, type pairing, density, and figure treatment adapt a theme without arbitrary CSS. See [Style tokens](docs/guide/style-tokens.md).
16
+ * **One self-contained file:** inline CSS, inline SVG, no network assets, and print rules. See [Guarantees](docs/guide/guarantees.md).
17
+ * **Engine and interfaces:** the same core powers the CLI and the MCP server.
18
+
19
+ ### Tech Stack
20
+
21
+ * **Language:** JavaScript on Node.js 20 or newer, ECMAScript modules.
22
+ * **Rendering:** no UI framework and no build step; blocks, SVG, and theme CSS are plain JavaScript.
23
+ * **Dependencies:** `@modelcontextprotocol/sdk` for the MCP server and `unpdf` for PDF text extraction.
24
+ * **Tests:** the Node.js built-in test runner.
25
+
26
+ ### Table of Contents
27
+
28
+ 1. [Getting Started](#getting-started)
29
+ 2. [Usage](#usage)
30
+ 3. [Running Tests](#running-tests)
31
+ 4. [Project Structure](#project-structure)
32
+ 5. [Contributing](#contributing)
33
+ 6. [License](#license)
34
+
35
+ ---
36
+
37
+ ### Getting Started
38
+
39
+ Install the package globally or run it without installing.
40
+
41
+ #### Prerequisites
42
+
43
+ * Node.js 20 or newer.
44
+ * npm 10 or newer.
45
+
46
+ #### Installation
47
+
48
+ 1. **Install from npm:**
49
+ ```bash
50
+ npm install -g @bytesbybrandon/living-docs
51
+ ```
52
+ 2. **Or clone the repository:**
53
+ ```bash
54
+ git clone https://github.com/bytesbybrandon/living-docs.git
55
+ cd living-docs
56
+ ```
57
+ 3. **Install dependencies for a checkout:**
58
+ ```bash
59
+ npm install
60
+ ```
61
+ 4. **Environment setup:** none. The engine reads files and URLs only.
62
+
63
+ ---
64
+
65
+ ### Usage
66
+
67
+ #### Running Locally
68
+
69
+ Render the bundled samples:
70
+
71
+ ```bash
72
+ npm run samples
73
+ ```
74
+
75
+ That writes one HTML file per sample model into `docs/`.
76
+
77
+ #### Code Example
78
+
79
+ ```bash
80
+ node bin/living-docs-axi.js ingest samples/source/harness-notes.md --draft --theme paper-dark -o docs/note.model.json
81
+ node bin/living-docs-axi.js render docs/note.model.json --theme paper-dark -o docs/note.html
82
+ node bin/living-docs-axi.js preview docs
83
+ ```
84
+
85
+ With the published package, use `npx -y -p @bytesbybrandon/living-docs living-docs-axi` for each command.
86
+
87
+ Detailed references:
88
+
89
+ * [Pipeline](docs/guide/pipeline.md)
90
+ * [CLI reference](docs/guide/cli.md)
91
+ * [Document model](docs/guide/document-model.md)
92
+ * [Style tokens](docs/guide/style-tokens.md)
93
+ * [MCP server](docs/guide/mcp.md)
94
+ * [Reactive workflow](docs/guide/reactive-workflow.md)
95
+ * [Guarantees](docs/guide/guarantees.md)
96
+ * [Architecture](ARCHITECTURE.md)
97
+ * [Decisions](docs/decisions/0001-one-model-three-themes.md)
98
+
99
+ ---
100
+
101
+ ### Running Tests
102
+
103
+ ```bash
104
+ npm test
105
+ ```
106
+
107
+ The suite covers rendering determinism and self-containment, escaping and link sanitization, schema validation, ingest of Markdown, HTML, and text, CLI behavior and exit codes, an in-memory MCP client round trip, and style token resolution.
108
+
109
+ ---
110
+
111
+ ### Project Structure
112
+
113
+ ```text
114
+ living-docs/
115
+ bin/ CLI and MCP entry points
116
+ src/
117
+ axi/ command parsing, compact output, file writes, preview
118
+ ingest/ Markdown, text, HTML, URL, and PDF intake
119
+ mcp/ stdio MCP server and tool definitions
120
+ model/ document model schema, validator, safe inline Markdown
121
+ render/ block renderers, SVG generators, style resolution, themes
122
+ server/ local preview server
123
+ samples/ sample models and one Markdown source
124
+ scripts/ sample build script
125
+ tests/ Node test runner suites
126
+ docs/
127
+ decisions/ architecture decision records
128
+ guide/ user and contributor guides
129
+ ```
130
+
131
+ ---
132
+
133
+ ### Contributing
134
+
135
+ Contributions are welcome.
136
+ Read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for the fork, branch, test, and pull request workflow.
137
+ Repository agent rules live in [AGENTS.md](AGENTS.md), and module boundaries live in [ARCHITECTURE.md](ARCHITECTURE.md).
138
+
139
+ ---
140
+
141
+ ### License
142
+
143
+ Released under the MIT License.
144
+ See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@bytesbybrandon/living-docs",
3
- "version": "0.1.0",
4
- "description": "Turn a source document into a designed, self-contained living doc: academic paper, dark reading notes, or telemetry console. Ships an AXI CLI and an MCP server.",
5
- "type": "module",
6
- "license": "MIT",
7
- "author": "Brandon D. Phillips",
8
- "engines": {
9
- "node": ">=20"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/bytesbybrandon/living-docs.git"
14
- },
15
- "homepage": "https://github.com/bytesbybrandon/living-docs#readme",
16
- "bugs": {
17
- "url": "https://github.com/bytesbybrandon/living-docs/issues"
18
- },
19
- "keywords": [
20
- "agent",
21
- "axi",
22
- "mcp",
23
- "documentation",
24
- "html",
25
- "pdf",
26
- "living-docs",
27
- "telemetry",
28
- "paper"
29
- ],
30
- "bin": {
31
- "living-docs-axi": "bin/living-docs-axi.js",
32
- "living-docs-mcp": "bin/living-docs-mcp.js"
33
- },
34
- "exports": {
35
- ".": "./src/index.js",
36
- "./render": "./src/render/index.js",
37
- "./ingest": "./src/ingest/index.js"
38
- },
39
- "files": [
40
- "bin",
41
- "src",
42
- "samples",
43
- "README.md",
44
- "LICENSE"
45
- ],
46
- "publishConfig": {
47
- "access": "public"
48
- },
49
- "scripts": {
50
- "test": "node --test tests/cli.test.js tests/ingest.test.js tests/mcp.test.js tests/render.test.js tests/style.test.js tests/validate.test.js",
51
- "samples": "node scripts/build-samples.js"
52
- },
53
- "dependencies": {
54
- "@modelcontextprotocol/sdk": "^1.32.2",
55
- "unpdf": "^2.1.0"
56
- }
57
- }
1
+ {
2
+ "name": "@bytesbybrandon/living-docs",
3
+ "version": "0.1.1",
4
+ "description": "Turn a source document into a designed, self-contained living doc: academic paper, dark reading notes, or telemetry console. Ships an AXI CLI and an MCP server.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Brandon D. Phillips",
8
+ "engines": {
9
+ "node": ">=20"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/bytesbybrandon/living-docs.git"
14
+ },
15
+ "homepage": "https://github.com/bytesbybrandon/living-docs#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/bytesbybrandon/living-docs/issues"
18
+ },
19
+ "keywords": [
20
+ "agent",
21
+ "axi",
22
+ "mcp",
23
+ "documentation",
24
+ "html",
25
+ "pdf",
26
+ "living-docs",
27
+ "telemetry",
28
+ "paper"
29
+ ],
30
+ "bin": {
31
+ "living-docs-axi": "bin/living-docs-axi.js",
32
+ "living-docs-mcp": "bin/living-docs-mcp.js"
33
+ },
34
+ "exports": {
35
+ ".": "./src/index.js",
36
+ "./render": "./src/render/index.js",
37
+ "./ingest": "./src/ingest/index.js"
38
+ },
39
+ "files": [
40
+ "bin",
41
+ "src",
42
+ "samples",
43
+ "README.md",
44
+ "LICENSE"
45
+ ],
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "scripts": {
50
+ "test": "node --test tests/cli.test.js tests/ingest.test.js tests/mcp.test.js tests/render.test.js tests/style.test.js tests/validate.test.js",
51
+ "samples": "node scripts/build-samples.js"
52
+ },
53
+ "dependencies": {
54
+ "@modelcontextprotocol/sdk": "^1.32.2",
55
+ "unpdf": "^2.1.0"
56
+ }
57
+ }
@@ -47,7 +47,7 @@ function renderTable(block, ctx) {
47
47
  }).join('')}</tr>`).join('');
48
48
  return `<figure class="tbl${spanClass(block)}">
49
49
  ${caption}
50
- <table><thead><tr>${head}</tr></thead><tbody>${body}</tbody></table>
50
+ <div class="tbl-scroll"><table><thead><tr>${head}</tr></thead><tbody>${body}</tbody></table></div>
51
51
  </figure>`;
52
52
  }
53
53
 
@@ -300,7 +300,7 @@ export function renderBlock(block, ctx) {
300
300
  : `${ctx.counters.section}.${ctx.counters.sub}`;
301
301
  const subtitle = block.subtitle ? `<p class="sec-subtitle">${renderInline(block.subtitle)}</p>` : '';
302
302
  return `<h${level} class="${level === 2 ? 'sec-head' : 'sub-head'}" id="sec-${number.replace('.', '-')}">
303
- <span class="sec-num">${number}</span><span class="sec-title">${renderInline(block.title)}</span>
303
+ <span class="sec-num">${number}</span> <span class="sec-title">${renderInline(block.title)}</span>
304
304
  </h${level}>${subtitle}`;
305
305
  }
306
306
  case 'figure': return renderFigure(block, ctx);
@@ -153,13 +153,14 @@ body{margin:0;background:#020409;color:var(--ink);font-family:var(--mono);font-s
153
153
  .prose.lead{font-size:14.4px;color:#c8dee9}
154
154
  .sec-head{display:flex;gap:10px;align-items:baseline;font-size:10.5px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#9fc7d8;border-top:1px solid #12242e;padding-top:8px;margin:24px 0 9px;break-after:avoid}
155
155
  .sec-num{color:var(--accent)}
156
- .sub-head{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#9fc7d8;margin:16px 0 6px;break-after:avoid}
156
+ .sub-head{display:flex;gap:.6em;align-items:baseline;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#9fc7d8;margin:16px 0 6px;break-after:avoid}
157
157
  .sec-subtitle{font-family:var(--sans);font-size:11.5px;color:#6f8f9f;margin:-3px 0 8px}
158
158
  .fig{margin:16px 0;border:1px solid #12242e;background:#050a12;padding:10px;break-inside:avoid}
159
159
  .fig-frame svg,.fig-frame img{display:block;width:100%;height:auto}
160
160
  figcaption{font-size:9.5px;line-height:1.5;color:#6f8f9f;margin-top:7px;letter-spacing:.03em}
161
161
  .fig-num,.tbl-num{color:var(--accent)}
162
162
  .tbl{margin:16px 0;break-inside:avoid}
163
+ .tbl-scroll{max-width:100%;overflow-x:auto}
163
164
  .tbl figcaption{font-size:8.5px;letter-spacing:.12em;text-transform:uppercase;color:#5f8090;margin:0 0 6px;text-align:right}
164
165
  table{width:100%;border-collapse:collapse;font-size:10.5px;line-height:1.5}
165
166
  thead th{font-size:8.5px;letter-spacing:.1em;text-transform:uppercase;color:#6f8f9f;text-align:left;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 6px}
@@ -40,13 +40,14 @@ p.prose{margin:0 0 .72em}
40
40
  p.prose.lead::first-letter{float:left;font-size:52px;line-height:.76;padding:6px 8px 0 0;font-weight:700;color:#e5ded0}
41
41
  h2.sec-head{display:flex;gap:10px;align-items:baseline;font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#b6ada0;border-top:1px solid #4a443c;padding-top:8px;margin:22px 0 9px;break-after:avoid}
42
42
  .sec-num{color:#ddd5c6;font-variant-numeric:tabular-nums}
43
- h3.sub-head{font-size:14px;font-weight:600;margin:15px 0 5px;break-after:avoid}
43
+ h3.sub-head{display:flex;gap:.5em;align-items:baseline;font-size:14px;font-weight:600;margin:15px 0 5px;break-after:avoid}
44
44
  .sec-subtitle{font-style:italic;font-size:12.5px;color:#948c7f;margin:-4px 0 8px}
45
45
  .fig{margin:16px 0;break-inside:avoid}
46
46
  .fig-frame svg,.fig-frame img{display:block;width:100%;height:auto}
47
47
  figcaption{font-family:var(--sans);font-size:10.4px;line-height:1.5;color:#a49b8d;margin-top:7px}
48
48
  .fig-num,.tbl-num{color:#ddd5c6;font-weight:600}
49
49
  .tbl{margin:16px 0;break-inside:avoid}
50
+ .tbl-scroll{max-width:100%;overflow-x:auto}
50
51
  .tbl figcaption{font-family:var(--sans);font-size:10.2px;letter-spacing:.08em;text-transform:uppercase;color:#948c7f;text-align:right;margin:0 0 6px}
51
52
  table{width:100%;border-collapse:collapse;font-size:11.6px;line-height:1.5}
52
53
  thead th{font-family:var(--sans);font-variant:small-caps;letter-spacing:.08em;font-weight:500;color:#bcb3a5;text-align:left;border-top:1px solid #6a6256;border-bottom:1px solid #6a6256;padding:5px 6px}
@@ -41,13 +41,14 @@ p.prose{margin:0 0 .68em}
41
41
  p.prose.lead::first-letter{float:left;font-size:48px;line-height:.78;padding:5px 7px 0 0;font-weight:700}
42
42
  h2.sec-head{display:flex;gap:10px;align-items:baseline;font-family:var(--sans);font-size:11.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;border-top:1px solid #1a1a1a;padding-top:7px;margin:20px 0 8px;break-after:avoid}
43
43
  .sec-num{font-variant-numeric:tabular-nums;color:#1a1a1a}
44
- h3.sub-head{font-size:13.5px;font-weight:700;margin:14px 0 5px;break-after:avoid}
44
+ h3.sub-head{display:flex;gap:.5em;align-items:baseline;font-size:13.5px;font-weight:700;margin:14px 0 5px;break-after:avoid}
45
45
  .sec-subtitle{font-size:12px;color:#555;margin:-4px 0 8px}
46
46
  .fig{margin:14px 0;break-inside:avoid}
47
47
  .fig-frame svg,.fig-frame img{display:block;width:100%;height:auto}
48
48
  figcaption{font-family:var(--sans);font-size:10.2px;line-height:1.45;color:#3a3630;margin-top:6px}
49
49
  .fig-num,.tbl-num{font-weight:700}
50
50
  .tbl{margin:14px 0;break-inside:avoid}
51
+ .tbl-scroll{max-width:100%;overflow-x:auto}
51
52
  .tbl figcaption{font-family:var(--sans);font-size:10.2px;line-height:1.4;margin:0 0 5px;color:#3a3630}
52
53
  table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.4}
53
54
  thead th{font-family:var(--sans);font-variant:small-caps;letter-spacing:.07em;font-weight:600;text-align:left;border-top:1.4px solid #1a1a1a;border-bottom:1px solid #1a1a1a;padding:5px}