/* Canon Presentation Mode v1 – Flow Chart Theology */
:root {color-scheme:dark;--ink:#f2eee4;--muted:#a8b7ba;--bg:#08151b;--edge:#19353d;--gold:#edc68a;--sea:#72cfbe;--blue:#85b7f2;--violet:#c8adf8;--brick:#eca6a5;}
*{box-sizing:border-box}html,body{margin:0;background:#071318;color:var(--ink);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffe29c;outline-offset:3px}a{color:#b6dcff} .app{min-height:100vh;background:radial-gradient(circle at 65% -20%,rgba(70,150,154,.12),transparent 48%),#071318}
.sitehead{max-width:1600px;margin:auto;padding:28px 30px 15px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;gap:13px;align-items:center;color:var(--gold);font-size:12px;letter-spacing:.13em;text-transform:uppercase;font-weight:800}.brand svg{width:34px;height:34px}.navlinks{font-size:13px;color:#819ba1}.navlinks a{color:inherit;text-decoration:none}
.titlebar{max-width:1600px;margin:auto;padding:13px 30px 21px;display:flex;justify-content:space-between;align-items:flex-end;gap:18px}.eyebrow{font-weight:800;color:#90b5b4;letter-spacing:.19em;font-size:11px;text-transform:uppercase}.titlebar h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.045em;font-size:clamp(32px,3.8vw,58px);margin:10px 0 7px;line-height:1.04}.titlebar p{max-width:730px;color:var(--muted);font-size:15px;margin:0;line-height:1.45}.toolbar{max-width:1600px;margin:auto;padding:0 30px 16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}.toolbar-l{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.toolbar-r{display:flex;align-items:center;gap:10px}.tiny-label{text-transform:uppercase;letter-spacing:.12em;color:#90a6a9;font-size:10px;font-weight:800;margin-right:4px}.pill,.control{border:1px solid #28454c;background:#10262d;color:#c9dad8;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:650;white-space:nowrap}.pill[aria-pressed=true]{background:#184f53;border-color:#4faba2;color:#edfff9}.pill[aria-pressed=false]{opacity:.63}.pill .dot{width:7px;height:7px;display:inline-block;border-radius:50%;vertical-align:1px;margin-right:7px;background:currentColor}.control{border-radius:10px;padding:10px 14px;background:#142c34;display:inline-flex;align-items:center;gap:9px}.control-primary{border-color:#d4ad72;background:#b88f56;color:#08151b;font-weight:850}.control:hover,.pill:hover{filter:brightness(1.16)}
.viewer-wrap{max-width:1600px;padding:0 30px;margin:auto}.viewer{position:relative;border:1px solid #294249;border-radius:18px;overflow:hidden;background:linear-gradient(160deg,#0e2530 0%,#091b24 100%);box-shadow:0 24px 70px #010f15a1}.viewer-top{position:absolute;z-index:4;top:0;left:0;right:0;height:52px;pointer-events:none;background:linear-gradient(90deg,#0b222de8,transparent);padding:15px 22px;display:flex;justify-content:space-between;align-items:flex-start}.stage-caption{font-size:11px;letter-spacing:.12em;color:#b8ceca;text-transform:uppercase;font-weight:800}.stage-tip{font-size:11px;color:#9db1b3}.canvas{height:min(66vh,700px);min-height:440px;overflow:auto;position:relative;scroll-behavior:smooth;overscroll-behavior:contain;cursor:grab;scrollbar-color:#476b6d #0a1b21}.canvas:active{cursor:grabbing}.tree{display:block;min-width:400px;max-width:none}.tree .era-line{stroke:#2a5358;stroke-opacity:.53;stroke-dasharray:3 12}.tree .era-text{fill:#86a2a8;font-size:18px;font-weight:800;letter-spacing:1px}.tree .era-sub{fill:#6b9196;font-size:12px;letter-spacing:.5px}.tree .flow{fill:none;stroke:#59756a;stroke-width:3;stroke-opacity:.85}.tree .flow.inferred{stroke-dasharray:9 10;stroke:#9a9e86}.tree .flow.canon{stroke:#9b7595;stroke-width:2.5}.tree .flow.editions{stroke:#7896b3;stroke-width:3}.tree .flow.library{stroke:#8e8694;stroke-dasharray:3 8;stroke-width:2}.node{cursor:pointer;transition:opacity .15s}.node rect{rx:14;stroke-width:1.6;filter:drop-shadow(0 4px 12px rgba(0,0,0,.32))}.node text{pointer-events:none}.node .nodehead{font-size:19px;font-weight:800;fill:#fffaf0}.node .nodedate{font-size:14px;font-weight:650;fill:#c5d0cb}.node.writing rect{fill:#264f47;stroke:#77bd9d}.node.handoff rect{fill:#284b51;stroke:#64a9ab}.node.manuscript rect{fill:#334e66;stroke:#91b8e1}.node.canon rect{fill:#5a3e58;stroke:#d4a0cd}.node.edition rect{fill:#4d4836;stroke:#dfbb7d}.node.library rect{fill:#404551;stroke:#aaaac0;stroke-dasharray:4 4}.node:hover rect,.node.selected rect{stroke:#ffe2a4;stroke-width:4;filter:drop-shadow(0 0 18px #ffc77355)}.node:focus{outline:none}.node:focus rect{stroke:#ffe2a4;stroke-width:4}.node .micro{font-size:13px;fill:#8db9bd}.legend{display:flex;gap:20px;flex-wrap:wrap;color:#a9bebf;font-size:11px;padding:12px 5px 0}.legend span:before{content:'';display:inline-block;width:27px;vertical-align:middle;margin-right:8px;border-top:2px solid #b4c5ae}.legend .dotted:before{border-top-style:dashed}.legend .library-key:before{border-top:2px dotted #a7a2b2}.statusbar{max-width:1600px;padding:17px 30px 28px;display:flex;justify-content:space-between;gap:14px;align-items:center;color:#99acad;font-size:12px;margin:auto}.statusbar b{color:#d8e4da}.statusbar .navblock{display:flex;gap:6px;align-items:center}.statusbar button{background:#122d34;color:#d6e5e6;border:1px solid #28434d;border-radius:10px;padding:10px 13px;font-size:12px}.statusbar button:hover{background:#23505a}.statusbar .zoomlabel{font-variant-numeric:tabular-nums;min-width:42px;text-align:center}
.detail{position:absolute;right:18px;top:70px;z-index:6;width:min(415px,calc(100% - 36px));max-height:calc(100% - 90px);overflow:auto;padding:22px;background:#102a32f7;backdrop-filter:blur(18px);border:1px solid #41616b;border-radius:19px;box-shadow:0 14px 60px #000a;display:none}.detail.open{display:block}.detail-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.detail .tag{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#8fd4cf;font-weight:800}.detail .close{width:29px;height:29px;border:1px solid #3e6065;color:#e5eeee;background:#173941;border-radius:8px;font-size:20px;line-height:1}.detail h2{font-family:Georgia,'Times New Roman',serif;font-size:29px;font-weight:500;line-height:1.1;letter-spacing:-.04em;margin:12px 0}.detail .date{color:#cfb88c;font-size:12px;margin:-4px 0 17px}.detail img{width:100%;height:158px;object-fit:cover;object-position:50% 45%;border-radius:11px;background:#544637}.photo-fallback{border:1px dashed #9c8870;background:linear-gradient(135deg,#433c2a,#725b3f);border-radius:11px;padding:24px 17px;height:158px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:12px;color:#fff1d3;font-size:13px}.photo-fallback[hidden]{display:none}.photo-fallback a{color:#fff5dc;font-weight:800}.detail .imagecaption{font-size:10px;color:#a8babc;margin:5px 0 12px}.detail .explain{font-size:13px;line-height:1.58;color:#e4ebe7}.detail .explain strong{color:#f2d0a1}.detail .levelrow{display:flex;gap:5px;margin:15px 0 10px}.detail .levelrow button{font-size:12px;border-radius:7px;border:1px solid #3b6063;background:#14323b;color:#c0d7d5;padding:7px 12px}.detail .levelrow button[aria-pressed=true]{background:#3a8885;color:#f6ffff}.detail .source{margin-top:12px;padding-top:12px;border-top:1px solid #2d5059;font-size:12px}.detail .source a{display:inline-block;margin-right:10px;margin-bottom:4px}.mini-warning{border-left:3px solid #b79864;padding-left:11px;color:#d4c4a9;line-height:1.4;font-size:11px;margin-top:13px}.fullscreen-notice{display:none}.footnote{max-width:1600px;margin:0 auto;padding:0 30px 25px;color:#7c9a9a;font-size:11px;line-height:1.6}
body.presenting .sitehead,body.presenting .titlebar,body.presenting .footnote{display:none}body.presenting .app{height:100vh;overflow:hidden}body.presenting .toolbar{max-width:none;padding:11px 24px;background:#07171d;min-height:70px}body.presenting .viewer-wrap{max-width:none;padding:0}body.presenting .viewer{border:0;border-radius:0}body.presenting .canvas{height:calc(100vh - 142px);min-height:0}body.presenting .statusbar{max-width:none;padding:8px 26px;height:70px;background:#091920}body.presenting .stage-caption{font-size:14px}body.presenting .stage-tip{font-size:13px}body.presenting .detail{width:min(600px,40vw);max-height:calc(100% - 96px);font-size:1.15em;padding:28px}body.presenting .detail h2{font-size:40px}body.presenting .detail .explain{font-size:17px}body.presenting .detail img{height:230px}body.presenting .fullscreen-notice{display:inline;color:#b2d9cc;font-size:11px}
@media(max-width:840px){.sitehead,.titlebar,.toolbar,.viewer-wrap,.statusbar,.footnote{padding-left:14px;padding-right:14px}.navlinks,.stage-tip{display:none}.toolbar{align-items:flex-start}.titlebar{display:block}.titlebar h1{font-size:36px}.viewer{border-radius:12px}.canvas{height:65vh}.detail{right:8px;top:58px;max-height:calc(100% - 67px)}.statusbar{align-items:flex-start;flex-wrap:wrap}.toolbar-r{flex-wrap:wrap}body.presenting .toolbar{gap:8px;padding:8px}body.presenting .pill{padding:6px 8px;font-size:10px}body.presenting .detail{width:calc(100% - 16px);right:8px}body.presenting .statusbar{padding:8px}}
@media (prefers-reduced-motion: reduce){.canvas{scroll-behavior:auto}.node{transition:none}}

/* Authentic manuscript photography. No invented images for events without extant artifacts. */
.node .thumb-frame { fill:#08161c;stroke:#ecce94;stroke-width:1.5; }
.node .node-photo { opacity:.96; pointer-events:none; }
.node .photo-label {fill:#fae6b8;font-size:9px;font-weight:850;letter-spacing:.03em;}
.node.manuscript .nodedate {font-size:13px;}
.artifact-photo {margin:0 0 12px;}
.detail .artifact-photo .artifact-image {display:block;object-fit:contain;object-position:center;height:210px;width:100%;background:#050d13;border:1px solid #4b686a;}
.detail .artifact-photo .artifact-image[hidden] {display:none;}
.artifact-photo .photo-fallback {height:auto;min-height:115px;line-height:1.4;padding:16px;}
.artifact-photo .imagecaption {font-size:11px;line-height:1.45;margin:9px 0 10px;color:#bed0cc;}
.photolinks{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px}
.photolinks button{border:1px solid #557779;background:#204b54;color:#f3fffd;padding:7px 9px;border-radius:7px;font-size:12px}
.photolinks a{font-size:11px}
.photo-dialog{position:fixed;z-index:9999;inset:3vh auto auto 50%;transform:translateX(-50%);width:min(92vw,1200px);max-height:94vh;overflow:auto;padding:16px;background:#0d2029;color:#f2f3ed;border:1px solid #67909a;border-radius:16px;box-shadow:0 0 0 100vmax #0008}
.photo-dialog::backdrop{background:#000b}
.photo-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#bdd2cf;margin-bottom:12px}
.photo-dialog button{border:1px solid #58767e;background:#183640;color:#f7f8f4;padding:9px 13px;border-radius:8px}
.photo-dialog img{display:block;max-width:100%;max-height:68vh;width:auto;height:auto;margin:auto;object-fit:contain;background:#091017}
.photo-dialog p{font-size:12px;color:#b9cbca;line-height:1.45}
body.presenting .detail .artifact-photo .artifact-image{height:290px}
@media (max-width:840px){.photo-dialog{width:calc(100vw - 12px);inset:1vh auto auto 50%;padding:12px}.photo-dialog img{max-height:60vh}}

/* Site integration */
.brand-module{color:#90aab1;font-size:11px}.navlinks a{font-weight:750;color:#b3dedf}

/* v5.7 historical contexts: deliberately separate from textual copy lines. */
.node.church rect{fill:#493e33;stroke:#d9b789}.node.creed rect{fill:#41385c;stroke:#b9abed}
.tree .flow.context{stroke:#bd9c88;stroke-width:2.25;stroke-dasharray:7 9;opacity:.66}
.node.linked rect{stroke:#ead89e;stroke-width:3;stroke-dasharray:7 4}
.related{margin:16px 0 0;padding:12px;border:1px solid #456b68;border-radius:12px;background:#122f32}
.related b{color:#f5e4c7;font-size:13px}.related>div{font-size:11px;line-height:1.5;color:#acbfbb;margin-top:7px}.related .related-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.related-links button{border-radius:7px;background:#214952;color:#eef7f2;padding:7px 10px;font-size:11px;border:1px solid #54807f;cursor:pointer}
.historical-context:before{border-top-color:#d6b993!important;border-top-style:dashed!important}
body.presenting .related b{font-size:16px}body.presenting .related>div{font-size:13px}

/* v5.8: generous, softer capsule-like node corners and wrapped titles */
.tree .node > rect:first-child{rx:23px;ry:23px;stroke-width:1.7;transition:stroke .15s,filter .15s}
.tree .node .nodehead{letter-spacing:-.025em;paint-order:stroke;stroke:rgba(0,0,0,.07);stroke-width:.4px}
.tree .node .nodedate{font-size:13.5px}
