/* The labyrinth map: the graph beside its checks, stacked on a phone. */
.lab { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
#graph { height: 70vh; min-height: 420px; background: var(--surface); border: 1px solid var(--rule); }
.lab aside { display: grid; gap: 8px; align-content: start; }
.lab h3, #papers h3 { font: 400 15px "IM Fell English", serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 10px 0 0; }
.lab ul { margin: 0; padding-left: 18px; color: var(--bone-dim); }
.lab .bad { color: var(--rust-bright); }
.legend .sw { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 8px; vertical-align: -1px; }
.legend .sw:first-child { margin-left: 0; }
.sw.patience { background: #5a8bb0; } .sw.cleverness { background: #c9a56e; } .sw.honesty { background: #b0533f; } .sw.none { background: #6d6a64; }
#papers { display: grid; gap: 12px; }
#papers article { background: var(--surface); border: 1px solid var(--rule); padding: 12px 16px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .lab { grid-template-columns: 1fr; }
  #graph { height: 60vh; min-height: 320px; }
}
