
:root{--paper:#f6f3e9;--ink:#263d38;--muted:#64736b;--line:#d3d6c8;--accent:#a34b35}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #a88746;outline-offset:2px}button:disabled{opacity:.35;cursor:default}.app{height:100vh;height:100dvh;display:grid;grid-template-rows:74px 1fr}header{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:10px 22px;background:#f8f6ee;z-index:5}.brand{display:flex;align-items:baseline;gap:20px}.brand h1{font:700 34px Georgia,serif;letter-spacing:3px;margin:0}.brand p{margin:0;color:var(--muted);font-size:12px;max-width:380px}.header-actions{display:flex;align-items:center;gap:9px}.pill{font-size:10px;letter-spacing:1.1px;color:var(--muted)}.quiet{border:1px solid #c7cebf;border-radius:5px;background:transparent;padding:7px 12px;font-size:12px}.workspace{min-height:0;display:grid;grid-template-columns:330px 1fr}aside{min-height:0;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#faf8f1;z-index:4}.search-area{padding:18px 18px 10px;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);margin-bottom:9px}.search{width:100%;padding:11px 12px;border:1px solid #bdc8b8;border-radius:5px;background:white;color:var(--ink);font-size:13px}.counts{display:flex;justify-content:space-between;align-items:center;padding-top:9px;color:var(--muted);font-size:11px}.filters{padding-top:8px;font-size:12px}.filters summary{cursor:pointer;color:var(--muted)}.filtergrid{display:grid;grid-template-columns:1fr 1fr;gap:7px 4px;padding:10px 0 3px}.filtergrid label{display:flex;align-items:center;gap:5px}.filtergrid input{accent-color:#315e5a}.sidebar-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}.intro{padding:17px 18px 15px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.intro p{margin:0 0 9px}.intro b{color:var(--ink)}.place-list{list-style:none;padding:0;margin:0}.place-list li{border-bottom:1px solid #e4e5dc}.place-list button{display:flex;gap:11px;width:100%;text-align:left;border:0;background:transparent;padding:10px 16px;align-items:center}.place-list button:hover{background:#efeee4}.place-list button.selected{background:#e3e8d8;border-left:3px solid #426650;padding-left:13px}.num{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;border:1px solid currentColor;font-size:10px;font-weight:750}.item-title{display:block;font-size:12px;line-height:1.35}.item-sub{display:block;color:var(--muted);font-size:10px;margin-top:3px}.detail{padding:18px;border-bottom:1px solid #b9c6b4;background:#eaf0e1}.detail-top{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.detail h2{font:600 22px/1.17 Georgia,serif;margin:6px 0 8px}.detail p{font-size:12px;margin:10px 0}.detail .meta{font-size:10px;color:#576a57;text-transform:uppercase;letter-spacing:.55px}.close{border:0;background:none;font-size:24px;line-height:1;padding:0 2px}.badge{font-size:11px;font-weight:700;padding:5px 7px;border:1px solid #b7c6ac;border-radius:4px;display:inline-block;background:#f6f6ec}.detail details{font-size:11px;margin:13px 0 0}.detail summary{cursor:pointer;font-weight:650}.refs{margin:7px 0 0;padding:0;list-style:none;color:#586b59}.refs li{padding:5px 0;border-bottom:1px solid #d1dbc9}.refs b{color:#334e39}.detail .note{font-size:10px;color:#6b765f}.stage{position:relative;overflow:hidden;min-width:0;background:#efeddf;touch-action:none}svg#map{display:block;width:100%;height:100%;cursor:grab;touch-action:none}svg#map.dragging{cursor:grabbing}svg#map.measuring{cursor:crosshair}.viewbar{position:absolute;left:18px;top:18px;display:flex;padding:4px;background:#faf8f1ed;border:1px solid #c4ccbc;border-radius:7px;box-shadow:0 2px 12px #273d3610;gap:2px}.viewbar button{background:none;border:0;border-radius:4px;padding:8px 12px;font-size:12px}.viewbar button.active{background:#315e5a;color:#fff}.tools{position:absolute;right:18px;top:18px;display:flex;flex-direction:column;gap:7px}.tools button{width:37px;height:37px;background:#faf8f1f0;border:1px solid #c0c9b9;border-radius:5px;font-size:20px;box-shadow:0 2px 6px #273d3610}.tools button.small{font-size:15px}.tools button.on{background:#315e5a;color:white}.north{position:absolute;right:30px;top:197px;font:bold 12px Georgia,serif;text-align:center;pointer-events:none}.north span{display:block;font-size:24px;line-height:23px}.scale-panel{position:absolute;left:18px;bottom:17px;padding:8px 11px;background:#faf8f1ed;border-radius:5px;border:1px solid #d1d6c7;pointer-events:none}.scale-line{height:6px;border:1px solid var(--ink);background:linear-gradient(90deg,var(--ink) 0 25%,transparent 25% 50%,var(--ink) 50% 75%,transparent 75%);margin-bottom:4px}.scale-text{font-size:11px;display:flex;justify-content:space-between}.scale-caption{font-size:9px;color:var(--muted);margin-top:5px}.map-legend{position:absolute;bottom:17px;right:18px;width:206px;background:#faf8f1ed;border:1px solid #c7cebf;border-radius:5px;padding:10px 12px;font-size:10px}.map-legend summary{font-weight:700;cursor:pointer;letter-spacing:.6px;font-size:10px}.legend-items{display:grid;gap:5px;margin-top:9px}.legend-items label{display:flex;align-items:center;gap:6px}.legend-items input{accent-color:#315e5a}.legend-items p{color:var(--muted);margin:4px 0 2px;font-size:10px}.toast{position:absolute;bottom:88px;left:50%;transform:translateX(-50%);max-width:90%;border:1px solid #bac7b1;border-radius:6px;padding:9px 14px;background:#faf8f1ed;text-align:center;font-size:12px;box-shadow:0 2px 6px #1e302915;pointer-events:none}.mark{cursor:pointer}.mark text{font:700 9px system-ui,sans-serif;pointer-events:none}.mark:focus{outline:none}.map-name{font:600 11px system-ui,sans-serif;fill:#263d38;paint-order:stroke;stroke:#f6f3e9;stroke-width:3px;stroke-linejoin:round;pointer-events:none}.map-road{font:11px system-ui,sans-serif;fill:#66735d;paint-order:stroke;stroke:#f6f3e9;stroke-width:3px;stroke-linejoin:round;pointer-events:none}dialog{max-width:770px;width:calc(100vw - 30px);max-height:85vh;border:1px solid #acbda3;border-radius:10px;padding:26px;background:#faf8f1;color:var(--ink);box-shadow:0 20px 100px #172b3855}dialog::backdrop{background:#172a2c77}dialog h2{font:700 29px Georgia,serif;margin:0 0 14px}dialog h3{font-size:13px;margin-top:22px}dialog p,dialog li{font-size:13px}dialog a{color:#315e5a}dialog .close{float:right}.source{padding:11px 0;border-top:1px solid #d6ddcd}.source a{font-weight:650}.source p{font-size:12px;margin:5px 0;color:#586b59}.help{color:var(--muted);font-size:11px;margin-top:16px}.mobile-toggle{display:none}.empty{padding:20px;font-size:12px;color:#7a6752}#map:focus{outline:2px solid #a88746;outline-offset:-2px}
@media(max-width:780px){.app{grid-template-rows:65px 1fr}header{padding:8px 13px}.brand{gap:10px}.brand h1{font-size:25px}.brand p{font-size:10px;max-width:170px}.pill{display:none}.quiet{padding:7px 8px;font-size:11px}.workspace{grid-template-columns:1fr;grid-template-rows:1fr;position:relative}aside{position:absolute;left:10px;top:60px;bottom:74px;width:min(330px,calc(100% - 66px));border:1px solid #c3ccba;border-radius:7px;box-shadow:0 4px 20px #1f3a3420;display:none}.workspace.open aside{display:flex}.stage{grid-row:1}.viewbar{left:10px;top:10px;padding:3px}.viewbar button{font-size:11px;padding:8px 9px}.tools{top:64px;right:10px}.north{right:22px;top:242px}.map-legend{right:10px;bottom:12px;width:159px;padding:8px;font-size:9px}.scale-panel{left:10px;bottom:12px;max-width:175px}.scale-caption{font-size:8px}.mobile-toggle{display:inline-block}.search-area{padding:12px}.intro,.detail{padding:13px}.toast{bottom:93px;left:50%;width:80%;font-size:11px}.source p{font-size:11px}}
@media print{header,aside,.viewbar,.tools,.map-legend,.toast{display:none!important}.app,.workspace,.stage{display:block;height:100vh;width:100vw}.north{top:20px}svg#map{width:100%;height:100%}}
/* Compact header: keep controls and title fully visible on narrow screens. */
@media(max-width:780px){.brand{display:block;min-width:0}.brand p{display:none}.brand h1{line-height:1.1}.header-actions{flex-shrink:0}.header-actions .quiet{white-space:nowrap}}
