/* Regional stories use the same map, with scope and relationship labels. */
.map-scope{display:flex;gap:6px;margin-bottom:12px}.map-scope button{flex:1;padding:9px 12px;border:1px solid #8b7b9f;border-radius:5px;background:transparent;color:#fff;font-size:.875rem}.map-scope button[aria-pressed=true]{background:#f1bb45;color:#27213d;border-color:#f1bb45;font-weight:700}
#thread-picker-label{margin-bottom:9px}.regional-story-section{background:#faf8fd}.thread-directory{display:grid;gap:8px;margin:24px 0}.thread-directory a{padding:12px 16px;border:1px solid #d9cfe7;border-radius:5px;background:#fff;font-size:.94rem;line-height:1.5;text-decoration:none}.thread-directory a:hover{background:#eee7f8}
.story-thread{padding:30px 0 30px 20px;margin:26px 0;border-left:3px solid var(--thread-color);scroll-margin-top:140px}.story-thread.is-active{border-left-width:6px;padding-left:17px}.story-thread h3{font-family:Georgia,serif;font-size:1.9rem;line-height:1.2;font-weight:400;margin:10px 0}.story-thread p{font-size:.96rem;line-height:1.7}.thread-period{color:var(--muted);font-size:.85rem!important}.thread-map-button{padding:11px 15px;background:#50359d;color:white;border-radius:5px;line-height:1.4;font-size:.9rem}.thread-map-button[aria-pressed=true]{background:#27213d;box-shadow:0 0 0 3px #f1bb45}.thread-stops{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.thread-stops a{display:inline-block;line-height:1.5;padding:8px 11px;border:1px solid #c7b8d9;border-radius:5px;font-size:.875rem;background:#fff;text-decoration:none}.thread-stops a[aria-current=true]{border:2px solid #50359d;padding:7px 10px;background:#eee7f8}
.thread-limit{font-size:.85rem!important;line-height:1.6;color:#625c6e;border-top:1px solid #d9cfe7;padding-top:12px}.connection-sources{font-size:.85rem!important;line-height:1.6}.thread-place{padding:17px 0;border-bottom:1px solid #d9cfe7;scroll-margin-top:140px}.thread-place summary{cursor:pointer;font-weight:700;line-height:1.6}.thread-place summary span{display:block;margin-left:18px;font-weight:400;color:#625c6e;font-size:.8rem}.thread-place p{font-size:.94rem;line-height:1.7}.thread-places-heading{font-size:1.7rem;margin-top:40px}.local-bridge,.regional-bridge{padding:17px;border:1px solid #d9cfe7;border-radius:5px;background:#f4effa;font-size:.94rem;line-height:1.6}.regional-bridge strong{display:block}.regional-bridge a{display:inline-block;margin-top:8px}
.thread-map-actions{display:flex;flex-wrap:wrap;gap:15px;padding:0 20px 12px}.thread-map-actions button{background:none;color:#f4d272;font-size:.85rem;border:0;border-bottom:1px solid #ae9dc8;padding:5px 0}.thread-map-legend{padding:10px 20px 14px;border-top:1px solid #514762;font-size:.75rem;line-height:1.5;color:#e5dfed}.thread-map-legend p{margin:6px 0 0}.thread-map-legend details summary{cursor:pointer;padding:4px 0}.thread-map-legend details>span{display:flex;gap:7px;align-items:center;margin:4px 0}.thread-map-legend i{width:10px;height:10px;display:inline-block;border:1px solid #fff;border-radius:3px;flex-shrink:0}.regional-point .marker-number{border-radius:6px}.regional-point .marker-number.muted{opacity:.42}
.map-stage{overflow-y:auto}.map-canvas{flex-shrink:0;min-height:230px}#map-dialog .map-canvas{min-height:200px}#map-dialog .map-scope{max-width:420px}#map-dialog #thread-picker-label{margin:0 18px 10px 0}#map-dialog .region-controls{margin-bottom:10px}.map-toolbar{padding-top:14px;padding-bottom:12px}.map-toolbar-title{margin-bottom:10px}.map-caption h2{font-size:1.5rem}.map-caption{padding-top:12px;padding-bottom:10px}
@media(max-width:800px){.map-column{height:640px}.map-toolbar{padding:12px 16px}.map-caption,.thread-map-legend{padding-inline:16px}.thread-map-actions{padding-inline:16px}.story-thread{padding-left:15px}.story-thread.is-active{padding-left:12px}.thread-map-legend{padding-block:8px}.map-scope{margin-bottom:9px}.map-caption h2{font-size:1.4rem}#map-dialog #thread-picker-label{margin:0 0 9px}.regional-story-section{scroll-margin-top:150px}}
@media print{.thread-map-button,.thread-map-actions,.map-scope{display:none!important}.story-thread{break-inside:avoid}.regional-story-section{background:white}}
