.map-workspace{--green:#203e35;--gold:#c49b57;--cream:#f7f3eb;--paper:#fffdf8;--line:#d6cbb8;--ink:#232827}.map-workspace *{box-sizing:border-box}.map-workspace h1,.map-workspace h2,.map-workspace h3{font-family:Georgia,serif;color:var(--green);line-height:1.15}.map-workspace a{color:#27594d}.map-workspace{max-width:1380px;margin:auto;padding:26px 24px 48px}.map-workspace .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#74613c;font-weight:700}.map-workspace h1{font-size:clamp(32px,5vw,48px);margin:5px 0 8px}.map-workspace h2{font-size:24px;margin:0 0 10px}.map-workspace p{margin:.4rem 0 1rem}.map-workspace .intro{max-width:85ch}.map-workspace .controlbar,.map-workspace .panel,.map-workspace .mapbox{background:var(--paper);border:1px solid var(--line);border-radius:7px}.map-workspace .controlbar{padding:16px 20px;display:grid;grid-template-columns:1fr minmax(180px,260px);gap:20px;align-items:center;margin:18px 0}.map-workspace .yearline{display:flex;align-items:baseline;justify-content:space-between}.map-workspace .yearline output{font:700 28px Georgia;color:var(--green)}.map-workspace input[type=range]{width:100%;accent-color:#527668}.map-workspace .ticks{display:flex;justify-content:space-between;color:#746b59;font-size:11px}.map-workspace .presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.map-workspace button,.map-workspace select,.map-workspace input[type=search]{font:inherit;color:var(--green);background:var(--paper);border:1px solid #aab9ad;border-radius:4px;padding:7px 11px;min-height:38px}.map-workspace button{cursor:pointer}.map-workspace button:hover,.map-workspace button[aria-pressed=true]{background:#e2ebe2;border-color:#527668}.map-workspace button:focus-visible,.map-workspace a:focus-visible,.map-workspace input:focus-visible,.map-workspace select:focus-visible,.map-workspace [tabindex]:focus-visible{outline:3px solid #b08238;outline-offset:3px}.map-workspace .layout{display:grid;grid-template-columns: minmax(200px,240px) minmax(0,1fr) minmax(220px,285px);gap:12px;align-items:start}.map-workspace .panel{padding:16px}.map-workspace .panel h3{font-size:18px;margin:16px 0 5px}.map-workspace .panel label{display:block;margin:6px 0}.map-workspace input[type=checkbox]{accent-color:var(--green)}.map-workspace .panel select,.map-workspace .panel input[type=search]{width:100%}.map-workspace .small{font-size:12px;color:#615842}.map-workspace .mapbox{overflow:hidden;min-width:0}.map-workspace .maphead{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.map-workspace .maphead button{min-height:34px;padding:3px 9px}.map-workspace .mapframe{background:#dce8e9;overflow:hidden}.map-workspace svg{width:100%;height:auto;aspect-ratio:3/2;display:block;touch-action:none;cursor:grab}.map-workspace svg.dragging{cursor:grabbing}.map-workspace #land{fill:#e7ddc6;stroke:#938f79;stroke-width:.9;stroke-linejoin:round}.map-workspace #graticule{stroke:#a3b5b4;stroke-width:.6;stroke-dasharray:3 5;opacity:.5}.map-workspace #labels{font:italic 20px Georgia,serif;fill:#647e7b;letter-spacing:.08em}.map-workspace #pins g{cursor:pointer}.map-workspace #pins text{pointer-events:none;font-size:11px;font-weight:600;paint-order:stroke;stroke:#f7f3eb;stroke-width:3px;stroke-linejoin:round;fill:#203e35}.map-workspace .legend{padding:9px 12px;display:flex;flex-wrap:wrap;gap:14px;font-size:12px;border-top:1px solid var(--line)}.map-workspace .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}.map-workspace .eventdot{background:#a65243}.map-workspace .placedot{background:#c18f3d}.map-workspace .realmdot{background:#416a5d}.map-workspace .eventlist{display:grid;gap:5px;max-height:400px;overflow:auto}.map-workspace .eventlist button{width:100%;text-align:left;background:#fffdf8;padding:8px}.map-workspace .eventlist button[aria-pressed=true]{background:#e2ebe2}.map-workspace .eventlist small{display:block;color:#6b655a}.map-workspace .detail{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.map-workspace .detail h3{margin-top:0}.map-workspace .realm-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:10px;margin-top:16px}.map-workspace .realm-card{background:var(--paper);border:1px solid var(--line);border-top:3px solid #547668;border-radius:5px;padding:12px}.map-workspace .realm-card h3{font-size:19px;margin:0 0 5px}.map-workspace .realm-card p{margin:0 0 5px}.map-workspace .foot{margin-top:25px;border-top:1px solid var(--line);padding-top:14px}.map-workspace .notice{padding:10px 12px;border-left:3px solid #b08c54;background:#f1e9d9;font-size:13px}.map-workspace .muted{color:#615842}.map-workspace .map-region{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:1050px){.map-workspace .layout{grid-template-columns:205px minmax(0,1fr)}.map-workspace .results{grid-column:1/-1}.map-workspace .eventlist{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));max-height:250px}}@media(max-width:650px){.map-workspace{padding:15px 12px}.map-workspace .layout,.map-workspace .controlbar{grid-template-columns:1fr}.map-workspace .results{grid-column:auto}.map-workspace .controlbar{gap:10px}.map-workspace .eventlist{grid-template-columns:1fr}.map-workspace .map-region button{font-size:12px}.map-workspace .panel{padding:13px}}.map-workspace #territories path{stroke:#526352;stroke-width:.65;vector-effect:non-scaling-stroke;fill-opacity:.64;stroke-linejoin:round;cursor:pointer}.map-workspace #territories path:hover,.map-workspace #territories path.selected{stroke:#203e35;stroke-width:1.8;fill-opacity:.88}.map-workspace #territories{clip-path:url(#territoryClip)}.map-workspace #territoryControls select{width:100%}.map-workspace #territoryStatus{margin:.25rem 0 .7rem;line-height:1.4}.map-workspace .boundarydot{border-radius:2px;background:#88a28a;border:1px solid #526352}.map-workspace .map-credit{padding:5px 12px;font-size:11px;color:#615842;background:#fffdf8;border-top:1px solid var(--line);line-height:1.5}.map-workspace .map-credit a{color:#27594d}.map-workspace .boundary-key{display:inline-block;width:12px;height:12px;border:1px solid #526352;border-radius:2px;vertical-align:middle;margin-right:5px}.map-workspace .castledot{background:#6d648e}.map-workspace .religiousdot{background:#367e96}.map-workspace .journeydot{background:#945b86}.map-workspace #journey-lines path{stroke:#945b86;stroke-width:2;stroke-dasharray:6 4;fill:none;vector-effect:non-scaling-stroke;pointer-events:none}.map-workspace #journey-lines circle{fill:#945b86;stroke:#fffdf8;stroke-width:1.4;pointer-events:none}
.map-workspace{font:15px/1.55 system-ui,sans-serif;color:var(--ink)}

.map-workspace .warsdot{background:#a47c31}.map-workspace .wars-map-intro{padding:1rem;border:1px solid #d6cbb8;border-left:4px solid #a47c31;margin:1rem 0;scroll-margin-top:1rem}.map-workspace .wars-map-layer{border-bottom:1px solid #d6cbb8;padding-bottom:.8rem;margin-bottom:.8rem}.map-workspace .wars-register{margin:2rem 0;scroll-margin-top:1rem}.map-workspace .wars-register-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1rem}.map-workspace .wars-register-grid article{border:1px solid #d6cbb8;padding:1rem;border-radius:5px;overflow-wrap:anywhere}.map-workspace .wars-register-grid h3{margin-top:0}.map-workspace .wars-map-layer :focus-visible{outline:3px solid #a47c31;outline-offset:2px}

.map-workspace .byz-intro{border-left-color:#72518d}.map-workspace .byzdot{background:#72518d}.map-workspace .byz-presets{display:flex;gap:.4rem;flex-wrap:wrap;margin:.6rem 0}.map-workspace .byz-diplomatic-line{stroke:#72518d!important;stroke-dasharray:6 5;fill:none;vector-effect:non-scaling-stroke;pointer-events:none}.map-workspace .byz-intro :focus-visible{outline:3px solid #72518d;outline-offset:2px}

.map-workspace .grey-map-intro{border-left-color:#486955}.map-workspace .greydot{background:#486955}.map-workspace .grey-map-intro :focus-visible{outline:3px solid #486955;outline-offset:2px}
