:root { --ink:#1a1a1a; --paper:#fbfbf8; --accent:#0046c8; --muted:#666; --panel:#fff; --box:#f3f3ee; --new:#0046c8; }
html,body { margin:0; height:100%; font:15px/1.45 Georgia,'Times New Roman',serif; color:var(--ink); background:var(--paper); }
header { height:44px; box-sizing:border-box; padding:0 18px; border-bottom:1px solid #ddd; background:#fff; display:flex; align-items:center; position:sticky; top:0; z-index:5; }
header h1 { font-size:20px; margin:0; font-variant:small-caps; letter-spacing:.5px; }
header nav.topnav { font-size:14px; color:var(--muted); display:flex; align-items:center; white-space:nowrap; }
header nav.topnav a { color:var(--accent); display:inline-block; width:104px; text-align:center; padding:3px 0; border-radius:3px; }
header nav.topnav a.current { background:#fff1a8; color:var(--ink); text-decoration:none; }
header nav.topnav .sep { display:inline-block; width:14px; text-align:center; }
header nav.topnav #switcher { margin-left:14px; }
header nav.topnav select { font:inherit; font-size:13px; }
#legendpop[hidden] { display:none; }
#legendpop { position:fixed; inset:0; background:rgba(0,0,0,.25); z-index:20; display:flex; align-items:flex-start; justify-content:center; padding-top:60px; }
#legendpop .legendbody { background:#fff; max-width:640px; max-height:calc(100% - 100px); overflow:auto; padding:14px 22px 18px; border-radius:6px; box-shadow:0 8px 30px rgba(0,0,0,.25); font-size:14px; position:relative; }
#legendpop h3 { margin:8px 0 4px; font-size:13px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); border-bottom:1px solid #e4e4de; }
#legendpop .close { position:absolute; right:12px; top:6px; font-size:22px; color:var(--muted); text-decoration:none; }
table.legendtab { border-collapse:collapse; }
table.legendtab td { padding:3px 8px 3px 0; vertical-align:middle; }
table.legendtab td:first-child { width:56px; }
a.ref { color:var(--accent); text-decoration:none; cursor:pointer; }
a.ref:hover { text-decoration:underline; }
.summary { font-size:16px; margin:6px 0 8px; }
.arrows { font-size:13px; color:var(--muted); margin-bottom:10px; }
.arrows .type { color:#999; }
.arrows.def { margin-bottom:2px; }
.box { background:var(--box); border-left:3px solid #999; padding:6px 10px; margin:6px 0; font-size:14px; }
.box.theorems { border-left-color:#3a6ea5; }
.boxtitle { font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:2px; }
.box ol { margin:2px 0; padding-left:22px; }
.box li { margin:1px 0; }
ul.comments { padding-left:20px; margin:10px 0; }
ul.comments li { margin:5px 0; }
ul.comments li.new { color:var(--new); }
.hint { color:var(--muted); font-style:italic; }
h2 { margin:0 0 4px; font-size:22px; font-variant:small-caps; }
/* explorer layout */
#wrap { display:flex; height:calc(100% - 44px); }
#treebox { flex:1 1 auto; overflow:auto; }
#panel { flex:0 0 307px; max-width:31%; overflow:auto; border-left:1px solid #ddd; background:var(--panel); padding:16px 20px 40px; }
svg text { font-family:Georgia,'Times New Roman',serif; }
.node rect, .node circle, .node ellipse { fill:#fff; stroke:var(--ink); stroke-width:1.2; cursor:pointer; }
.node.spec rect { stroke-dasharray:5 4; }
.node.concept circle, .node.concept ellipse { stroke:#1a1a1a; stroke-width:3; fill:#fff; }
.node.cbox rect { stroke:#777; fill:#fff; }
.node.cbox.b-combine rect { stroke:#1f5fbf; stroke-width:5; }
.edge.role path { stroke:#777; stroke-width:0.9; stroke-dasharray:4 3; }
.edge.role text { fill:#555; }
.node.bad rect { stroke-dasharray:10 5; }   /* inconsistent theory: long dashes, frame in the branch colour */
.node text { font-variant:small-caps; font-size:13px; text-anchor:middle; pointer-events:none; }
.node.selected rect, .node.selected circle, .node.selected ellipse { fill:#fff1a8; stroke-width:2.2; }
.edge path { fill:none; stroke:#8c8c8c; }
.edge.def path { stroke-width:2.6; stroke-dasharray:1 5; stroke-linecap:round; }
.edge.ax path { stroke-width:0.9; }
.edge.both path { stroke-width:2.6; }
.edge text { font-size:9.5px; fill:#333; text-anchor:middle; }
/* non-selected parts of the tree stay fully legible: no greying out */
.edge.hi path { stroke:var(--accent); } .edge.hi text { fill:var(--accent); font-weight:bold; }
.branchlabel { font: bold 15px system-ui, sans-serif; letter-spacing:1px; pointer-events:none; }
.branchlabel .branchsub { font: 12px system-ui, sans-serif; letter-spacing:0; }
.node.b-conclude rect, .node.b-collect rect, .node.b-combine rect, .node.b-compare rect, .node.b-count rect, .node.b-converge rect { stroke-width:5; }
.node.b-conclude rect { stroke:#0097a7; }
.node.b-collect rect { stroke:#9b1b1b; } .node.b-combine rect { stroke:#1f5fbf; } .node.b-compare rect { stroke:#ee8a1c; } .node.b-count rect { stroke:#1e8449; } .node.b-converge rect { stroke:#7d3c98; }
/* atlas page */
body.atlaspage { height:auto; }
body.atlaspage main { max-width: 860px; margin: 0 auto; padding: 16px 20px 60px; }
#toc { font-size:13px; line-height:1.9; margin-bottom:20px; }
#toc a { color:var(--accent); text-decoration:none; margin-right:4px; }
section.entry { border-top:1px solid #ddd; padding-top:14px; margin-top:18px; }
/* models */
:root { --model:#1a1a1a; --modelbg:#f0f0f0; }   /* models: black frame, light gray fill (17 Oct 2026; was red #b00020 / #fbeeee) */
.node.model rect { stroke:var(--model); stroke-width:1.6; fill:var(--modelbg); }
.node.model.selected rect { stroke-width:3; }
.node.model text { fill:var(--model); font-variant:normal; font-style:italic; }
.edge.describes path { stroke:var(--model); stroke-width:1.4; }
.edge.describes text { fill:var(--model); font-style:italic; }
h2.model { color:var(--model); }
a.ref.model { color:var(--model); font-style:italic; }
.box.model { border-left-color:var(--model); background:var(--modelbg); }
.luts { display:flex; flex-wrap:wrap; gap:18px; align-items:flex-start; margin:4px 0; }
table.lut { border-collapse:collapse; font-size:14px; }
table.lut th, table.lut td { padding:2px 7px; text-align:center; }
table.lut th { font-weight:normal; color:var(--muted); }
table.lut tr:first-child th { border-bottom:1px solid #999; }
table.lut th:first-child { border-right:1px solid #999; }
.lutnames { font-size:12px; color:var(--muted); margin-top:4px; }
/* tabs and views */
.tabs { display:inline-flex; gap:4px; }
.tab { font:14px Georgia,'Times New Roman',serif; padding:4px 12px; border:1px solid #bbb; background:#f3f3ee; cursor:pointer; border-radius:3px; }
.tab.active { background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.redtxt { color:var(--model); font-style:italic; }
/* model-view edges */
#tree-models .edge path { stroke:var(--model); stroke-width:1.4; fill:none; }
#tree-models .edge.quot path { stroke-dasharray:6 3; }
#tree-models .edge.interdef path { stroke-dasharray:2 3; }
#tree-models .edge text { fill:var(--model); }

#tree-models .edge.hi path { stroke:var(--model); stroke-width:2.2; } #tree-models .edge.hi text { fill:var(--model); font-weight:bold; }

#tree-models .node.model.selected rect { stroke-width:3; }
/* overlay boxes: formal systems shown in the models view */
.node.overlay.box rect { fill:#fff; stroke:#1a1a1a; stroke-width:1.4; }
.node.overlay.box text { fill:#1a1a1a; font-variant:small-caps; font-style:normal; }
.node.overlay.box.selected rect { stroke:#0046c8; stroke-width:2.6; }
/* tabs and views */
.tabs { display:inline-flex; gap:4px; }
.tab { font:14px Georgia,'Times New Roman',serif; padding:4px 12px; border:1px solid #bbb; background:#f3f3ee; cursor:pointer; border-radius:3px; }
.tab.active { background:#1a1a1a; color:#fff; border-color:#1a1a1a; }
.redtxt { color:var(--model); font-style:italic; }
/* model-view edges */
#tree-models .edge path { stroke:var(--model); stroke-width:1.4; fill:none; }
#tree-models .edge.quot path { stroke-dasharray:6 3; }
#tree-models .edge.interdef path { stroke-dasharray:2 3; }
#tree-models .edge text { fill:var(--model); }

#tree-models .edge.hi path { stroke:var(--model); stroke-width:2.2; } #tree-models .edge.hi text { fill:var(--model); font-weight:bold; }

#tree-models .node.model.selected rect { stroke-width:3; }
/* overlay boxes: formal systems shown in the models view */
.node.overlay.box rect { fill:#fff; stroke:#1a1a1a; stroke-width:1.4; }
.node.overlay.box text { fill:#1a1a1a; font-variant:small-caps; font-style:normal; }
.node.overlay.box.selected rect { stroke:#0046c8; stroke-width:2.6; }

/* genealogy block and family page */
.genealogy { border-left:3px solid #999; background:#f7f7f2; padding:6px 10px; margin:8px 0; font-size:14px; }
.genealogy dl { margin:4px 0; } .genealogy dt { font-style:italic; color:var(--muted); margin-top:4px; } .genealogy dd { margin:0 0 2px 0; }
a.famlink { font-size:12px; font-variant:normal; font-weight:normal; color:var(--accent); text-decoration:none; margin-left:8px; }
body.family main { max-width:960px; margin:0 auto; padding:16px 20px 60px; }
body.family .modelcard { border:1px solid #cfcfcf; border-radius:4px; padding:8px 14px; margin:10px 0; background:#fff; }
body.family #minitree { display:block; margin:10px auto; }

.status { font-size:13px; margin:2px 0 6px; } .statuslabel { font-style:italic; color:var(--muted); }
#tree-family .edge path { stroke:var(--model); stroke-width:1.4; fill:none; }
#tree-family .edge.quot path { stroke-dasharray:6 3; } #tree-family .edge.interdef path, #tree-family .edge.iso path { stroke-dasharray:2 3; }
#tree-family .edge text { fill:var(--model); }
#tree-family .edge.dim path { stroke:#c4c4c4; } #tree-family .edge.dim text { fill:#c4c4c4; }
#tree-family .edge.hi path { stroke:var(--model); stroke-width:2.2; } #tree-family .edge.hi text { fill:var(--model); font-weight:bold; }
#tree-family .node.model.dim rect { stroke:#c4c4c4; fill:#fff; } #tree-family .node.model.dim text { fill:#c4c4c4; }
#tree-family .node.model.selected rect { stroke-width:3; }
#tree-family .node.model.tabled rect { stroke-width:2.2; }
.tab.family { border-color:#1a1a1a; color:#1a1a1a; } .tab.family.active { background:#1a1a1a; color:#fff; }

.edge.construct path { stroke-width:2.6; stroke-dasharray:1 5; stroke-linecap:round; }
#panel h3, body.atlaspage h3 { margin:14px 0 4px; font-size:13px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); border-bottom:1px solid #e4e4de; }

pre.lean { font-size:12px; line-height:1.35; background:var(--box); border-left:3px solid #3a6ea5; padding:8px 10px; overflow-x:auto; white-space:pre; }

.lean { color:#3a6ea5; font-size:12px; }
.lean code { font-size:12px; }
.leannote { color:#555; font-size:12px; }
.node rect { filter: drop-shadow(1.5px 2px 2px rgba(0,0,0,0.35)); }
.node.overlay rect { filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.45)); }
.node.overlay.more rect { fill:#fff6f6; }
.node.overlay.more text { font-style:italic; }
#notation { max-width:900px; margin:0 auto; padding:16px 28px 60px; }
#tree-family .node.model.nonmodel rect { stroke-dasharray:5 4; fill:#fff; }
#tree-family .node.model.nonmodel text { opacity:.75; }

.tableau { margin:8px 0; overflow-x:auto; } .tableau svg { display:block; max-width:100%; height:auto; }
.gallery { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:flex-end; }
.tcard { display:inline-block; text-align:center; font-size:12px; color:var(--model); text-decoration:none; max-width:100%; }
.tcard .tableau { margin:0; overflow:visible; } .tcard svg { max-width:100%; height:auto; }
.tcard .tcap { margin-top:1px; max-width:180px; line-height:1.15; } .tcard:hover .tcap { text-decoration:underline; }
.tableau text { font-family: Helvetica, Arial, sans-serif; font-variant-numeric: lining-nums; } .tableau text.mono { font-family: Menlo, Consolas, monospace; }
.tnote { font-size:13px; color:#333; margin:6px 0 0; font-family: 'Times New Roman', Times, 'Liberation Serif', serif; font-size:14px; } .tnote code { font-size:12px; }
.grids { margin:8px 0; overflow-x:auto; } .grids svg { display:block; }
.ast { position:relative; top:0.22em; } .calc .ast { top:0; } .calc #defs .ast { top:0.1em; }
.calc input.bad { border-color:#b00020; }
.legendbox .legendtitle { font: bold 14px Georgia, serif; fill:#1a1a1a; }
.legendbox .legendrow { font: 12px Georgia, serif; fill:#1a1a1a; }
.legendbox .edge path { fill:none; }
