/* Chapter 05 · Connected Casework Diagram in Deep Ink Navy, Gold & Archival Paper */
.connected-section {
  position:relative; overflow:hidden;
  background:
    radial-gradient(880px 520px at 50% 44%, rgba(32,53,94,.42) 0%, transparent 66%),
    linear-gradient(180deg, #0d1626 0%, #0a1220 100%);
  color:var(--navy-text);
  border-top:1px solid rgba(201,162,74,.24);
  border-bottom:1px solid rgba(201,162,74,.20);
}
.connected-section .chapter-head .eyebrow { color:var(--gold-soft); }
.connected-section .chapter-head h2 { color:#fff; }
.connected-section .chapter-head>p { color:#b2bed4; }

.product-system {
  --graph-line:#3b5075;
  --graph-text:#eef2f8;
  --graph-soft:#a5b4cd;
  --graph-accent:#d8b35e;
  background:rgba(16,28,51,.85);
  color:var(--graph-text);
  border:1px solid rgba(201,162,74,.28);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 28px 72px rgba(4,9,18,.48);
}

.system-top {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:8px 16px 8px 26px; min-height:56px;
  background:rgba(8,14,26,.45);
  border-bottom:1px solid var(--navy-line);
  font-size:13px; color:#dce4f2;
}

.system-board {
  position:relative; display:grid;
  grid-template-columns:1fr 1.22fr 1fr; grid-template-rows:auto auto auto;
  gap:24px 62px; padding:32px 30px 26px;
}
.system-connections { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.system-connections path { fill:none; stroke:var(--graph-line); stroke-width:1.25; }
.system-connections path.is-active { stroke:var(--graph-accent); stroke-width:2; }
.system-connections .system-arrow { stroke:var(--graph-line); stroke-width:1.25; }

.system-packet {
  fill:var(--graph-accent); offset-distance:50%; opacity:.95;
  filter:drop-shadow(0 0 5px rgba(216,179,94,.75));
}
[data-playing=true] .system-packet { animation:system-travel 2.2s ease-in-out infinite; }
@keyframes system-travel { from { offset-distance:0%; opacity:0; } 15%,85% { opacity:1; } to { offset-distance:100%; opacity:0; } }

.system-node {
  position:relative; z-index:1; min-width:0; display:block;
  border:1px solid var(--navy-line); border-radius:var(--radius-md);
  padding:20px; background:#14223b;
  transition:background .22s,border-color .22s,box-shadow .22s;
}
.system-node:hover,.system-node:focus-visible { border-color:var(--graph-accent); }
.system-node.is-current {
  border-color:var(--graph-accent); background:#1a2d4f;
  box-shadow:0 0 0 1px rgba(216,179,94,.28), 0 14px 32px rgba(5,10,20,.38);
}
.system-node.is-source { border-color:rgba(216,179,94,.65); }

.system-node-heading { display:flex; align-items:center; gap:10px; }
.system-node-heading>svg { width:19px; height:19px; flex-shrink:0; color:var(--gold); }
.system-node-heading>strong { font-size:15px; font-weight:600; line-height:1.5; color:#fff; }
.system-node p { color:var(--graph-soft); font-size:12px; line-height:1.8; margin-top:8px; }
.system-node small { display:block; font-size:11px; line-height:1.75; color:var(--graph-soft); margin-top:10px; }

/* Center Archival Paper Dossier Node */
.node-communication { grid-area:1/1; }
.node-materials { grid-area:2/1; }
.node-case {
  grid-area:1/2/3/3;
  background:#faf7f0; color:var(--ink);
  border:1px solid var(--gold-border);
  border-top:3px solid var(--gold);
  padding:24px;
  box-shadow:0 22px 54px rgba(4,9,18,.42);
}
.node-case.is-current { background:#fffdf8; border-color:var(--gold); }
.node-case.is-source { border-color:var(--gold); }
.node-case .system-node-heading>svg { color:var(--gold-dark); }
.node-case .system-node-heading>strong { font-family:var(--serif); font-size:22px; font-weight:700; color:var(--navy); }
.node-case>p { color:var(--muted); font-size:12px; margin-top:6px; }

.case-facts { margin:20px 0 18px; padding:0; list-style:none; display:grid; gap:11px; }
.case-facts>li {
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  font-size:12px; line-height:1.65; color:var(--muted);
  padding-bottom:8px; border-bottom:1px dashed var(--line);
}
.case-facts>li:last-child { border-bottom:0; padding-bottom:0; }
.case-facts strong { font-family:var(--sans); font-size:14px; font-weight:650; color:var(--navy); font-variant-numeric:tabular-nums; }
.case-facts .fact-unverified {
  color:var(--seal); background:var(--seal-bg); border:1px solid var(--seal-border);
  padding:1px 8px; border-radius:4px; font-size:12px; font-weight:650;
}

.system-case-artifact { border-top:1px solid var(--line); padding-top:14px; min-height:98px; }
.system-case-artifact>small {
  margin:0; font-size:11px; font-weight:650;
  color:var(--gold-dark); letter-spacing:.08em;
}
.system-case-artifact>p { margin-top:6px; font-size:13px; color:var(--ink); line-height:1.8; }

.material-outputs { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.material-outputs>span {
  border:1px solid rgba(201,162,74,.38); background:rgba(201,162,74,.10);
  padding:2px 8px; border-radius:4px; font-size:11px; color:var(--gold-soft); line-height:1.7;
}
.system-quote {
  margin:14px 0 0; padding:11px 13px;
  border-left:2px solid var(--gold); background:rgba(8,14,26,.45);
  border-radius:0 4px 4px 0;
  font-family:var(--serif); font-size:13px; line-height:1.85; color:#eef2f8;
}
.system-quote>small { margin-top:6px; font-family:var(--sans); font-size:11px; color:#9eb0cc; }
.system-files { display:grid; gap:6px; margin-top:12px; }
.system-files>span { display:flex; align-items:center; gap:8px; font-size:12px; line-height:1.7; color:#dce4f2; }
.system-files svg { width:14px; height:14px; flex-shrink:0; color:var(--gold); }

.node-document { grid-area:1/3; }
.node-hearing { grid-area:2/3; }
.workflow-outputs { margin-top:12px; display:grid; gap:6px; }
.workflow-outputs>span { padding-left:14px; position:relative; font-size:12px; color:#cbd5e6; line-height:1.75; }
.workflow-outputs>span:before {
  content:""; width:5px; height:5px; border-radius:50%;
  background:var(--gold); position:absolute; left:0; top:.62em;
}

.node-todo {
  grid-area:3/2/4/4; display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:14px 20px; background:#14223b;
}
.node-todo .system-node-heading>strong { font-size:14px; }
.node-todo>p { margin:0; font-size:12px; text-align:right; color:#b3c1d8; }

.system-support {
  display:flex; align-items:center; justify-content:space-between; gap:16px 32px;
  padding:16px 28px; border-top:1px solid var(--navy-line);
  background:rgba(8,14,26,.55); transition:background .2s;
}
.system-support:hover { background:rgba(201,162,74,.10); }
.system-support>strong { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:#fff; }
.system-support svg { width:18px; height:18px; color:var(--gold); }
.system-support>span { font-size:12px; color:var(--graph-soft); line-height:1.8; }

.continuity-notes {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px;
  margin-top:26px;
}
.continuity-notes article {
  display:flex; align-items:flex-start; gap:16px;
  padding:22px 24px; border-radius:var(--radius-md);
  background:rgba(255,255,255,.04); border:1px solid var(--navy-line);
}
.continuity-notes article>svg {
  width:22px; height:22px; flex-shrink:0; margin-top:2px; color:var(--gold);
}
.continuity-notes h3 { font-size:16px; font-weight:600; line-height:1.5; color:#fff; }
.continuity-notes p { font-size:13px; line-height:1.85; color:var(--navy-muted); margin-top:6px; }

@media(max-width:1100px) {
  .system-board { gap:20px 38px; padding:24px 22px; }
  .system-node { padding:16px; }
  .node-case { padding:20px; }
  .system-node-heading>strong { font-size:14px; }
  .node-case .system-node-heading>strong { font-size:20px; }
  .system-support { padding-inline:22px; }
}
@media(max-width:860px) {
  .system-board { gap:20px 26px; padding:20px 16px; grid-template-columns:1fr 1.15fr 1fr; }
  .system-node { padding:14px 12px; }
  .system-node-heading { align-items:flex-start; flex-wrap:wrap; gap:7px; }
  .system-node-heading>strong { font-size:13px; }
  .system-node p { font-size:11px; }
  .node-case { padding:17px; }
  .node-case .system-node-heading>strong { font-size:19px; }
  .case-facts>li { flex-wrap:wrap; gap:2px 8px; }
  .system-case-artifact { min-height:112px; }
  .node-todo { padding:12px 14px; }
  .system-support { align-items:flex-start; }
  .system-support>strong { flex-shrink:0; }
}
@media(max-width:700px) {
  .system-top { min-height:58px; padding:6px 10px 6px 16px; font-size:12px; }
  .system-board { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; padding:18px 14px; }
  .node-communication { grid-area:1/1; }
  .node-materials { grid-area:1/2; }
  .system-node { padding:14px 12px; }
  .node-case { grid-area:2/1/3/3; padding:20px; }
  .node-case .system-node-heading { align-items:center; }
  .node-case .system-node-heading>strong { font-size:21px; }
  .case-facts { margin-block:16px; gap:9px; }
  .case-facts>li { flex-wrap:nowrap; }
  .system-case-artifact { min-height:84px; }
  .node-document { grid-area:3/1; }
  .node-hearing { grid-area:3/2; }
  .node-todo { grid-area:4/1/5/3; display:block; }
  .node-todo>p { margin-top:6px; text-align:left; }
  .system-support { padding:16px; flex-direction:column; align-items:flex-start; gap:8px; }
  .continuity-notes { grid-template-columns:1fr; gap:14px; }
  .continuity-notes article { padding:18px; }
}
@media(prefers-reduced-motion:reduce) {
  .system-packet { animation:none!important; offset-distance:50%; }
  .system-node { transition:none; }
}
