:root{color-scheme:light;--ink: #24180f;--paper: rgba(246, 237, 220, .94);--line: #6d4b32;--brick: #7c342c;--cream: #f6ecd8}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#app{margin:0;height:100%;overflow:hidden;background:#1b140e;font-family:Georgia,Iowan Old Style,Palatino,Palatino Linotype,serif;color:var(--ink)}#view{display:block;width:100%;height:100%;cursor:grab}#view.looking{cursor:none}#topbar,#card,#help .sheet,#tools,#status{position:absolute;background:var(--paper);border:1px solid var(--line);box-shadow:0 10px 30px #1e100647}#topbar{top:14px;left:14px;right:14px;display:flex;justify-content:space-between;gap:16px;align-items:end;padding:10px 16px 12px;pointer-events:none}h1,h2{font-weight:600;margin:0;letter-spacing:.01em}h1{font-size:28px;line-height:1}h2{font-size:22px}.eyebrow{margin:0 0 2px;font-family:Palatino Linotype,Palatino,Georgia,serif;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--brick)}#where{margin:0;text-align:right;max-width:46ch;font-size:15px}#card{left:14px;bottom:14px;width:min(420px,calc(100% - 28px));padding:12px 14px 14px;pointer-events:none}#card .tag{margin:0;color:var(--brick);font-size:12px;letter-spacing:.08em;text-transform:uppercase}#card .use{margin:4px 0 8px;font-style:italic}#card p{margin:0;font-size:15px;line-height:1.4}#help{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:grid;place-items:center;padding:24px;background:#1c120a47}#help .sheet{position:relative;width:min(560px,100%);padding:22px 24px 20px}#help p{line-height:1.45}#help ul{padding-left:18px;margin:8px 0 16px}#help li{margin:6px 0}.row{display:flex;flex-wrap:wrap;gap:10px}button,select{font:inherit;color:var(--cream);background:var(--brick);border:1px solid #4e221c;border-radius:4px;padding:10px 14px;cursor:pointer}button.ghost,select{color:var(--ink);background:transparent;border-color:var(--line)}button:hover{filter:brightness(1.08)}#tools{top:92px;right:14px;display:flex;flex-direction:column;gap:8px;padding:10px;align-items:stretch}#tools label{display:flex;flex-direction:column;gap:4px;font-size:13px}#status{left:50%;bottom:18px;transform:translate(-50%);padding:8px 12px;margin:0}#walk-hint{position:absolute;left:50%;bottom:22px;z-index:4;transform:translate(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 28px);padding:8px 8px 8px 14px}#walk-hint p{margin:0;white-space:nowrap}#overview-hint{position:absolute;left:50%;bottom:22px;z-index:4;transform:translate(-50%);max-width:min(640px,calc(100% - 28px));padding:8px 14px;background:var(--paper);border:1px solid var(--line);box-shadow:0 10px 30px #1e100647}#overview-hint p{margin:0;text-align:center;font-size:15px}#compass{position:absolute;top:96px;right:16px;z-index:5;width:68px;height:68px;border-radius:50%;background:var(--paper);border:1px solid var(--line);box-shadow:0 8px 20px #1e100647;pointer-events:none}#compass .rose{position:relative;width:100%;height:100%}#compass .rose span{position:absolute;left:50%;top:5px;transform:translate(-50%);font-size:15px;font-weight:700;color:var(--brick);line-height:1}#compass .needle{position:absolute;left:50%;top:24px;width:0;height:0;margin-left:-6px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:26px solid var(--brick)}#touch{display:none;position:absolute;left:12px;bottom:12px}#touch .pad button{min-width:74px;margin:3px}#stats{position:absolute;top:292px;right:14px;z-index:6;width:min(360px,calc(100% - 28px));max-height:calc(100% - 310px);display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);box-shadow:0 10px 30px #1e100647}#stats-toggle{width:100%;text-align:left;border:0;border-bottom:1px solid transparent;border-radius:0;background:transparent;color:var(--ink);padding:10px 12px}#stats.open #stats-toggle{border-bottom-color:var(--line)}#stats:not(.open) #stats-body{display:none}#stats-body{overflow:auto;padding:10px 12px 14px}#stats .year-head{margin-bottom:8px}#stats .year-readout{margin:0 0 6px;font-size:26px;line-height:1.15}#stats .year-pop{font-size:19px;font-weight:500}#stats .year-row{display:flex;align-items:center;gap:8px}#stats .year-step{flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid var(--line);border-radius:4px;background:var(--cream);color:var(--ink);font:22px/1 Georgia,Iowan Old Style,Palatino,serif;cursor:pointer}#stats .year-step:disabled{opacity:.35;cursor:default}#stats input[type=range]{width:100%;margin:0;accent-color:var(--brick)}#stats .year-row input[type=range]{flex:1;width:auto}#stats .year-scale{display:flex;justify-content:space-between;font-size:12px;color:var(--brick)}#stats .town-note{margin:6px 0 0;font-size:13px;color:var(--brick)}#stats .year-drop{border-top:1px solid rgba(109,75,50,.28);margin:0}#stats .year-drop summary{cursor:pointer;padding:8px 0;color:var(--ink);font-size:15px;font-weight:600}#stats .drop-body{padding:0 0 8px}#stats h2{font-size:20px;margin-bottom:6px}#stats p,#stats li{font-size:14.5px;line-height:1.4}#stats .lead{margin:0 0 10px}#stats section{margin:0 0 12px}#stats h3{margin:0 0 4px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--brick)}#stats .figure{margin:0 0 6px}#stats .group-title{margin:10px 0 2px;font-size:14px;font-weight:600}#stats .biz{list-style:none;margin:0;padding:0}#stats .biz li{padding:5px 0;border-bottom:1px solid rgba(109,75,50,.18)}#stats .biz b{font-weight:600}#stats .year{color:var(--brick);font-size:12px;letter-spacing:.04em}#stats .note{display:block;margin-top:2px;font-size:13px}#stats details{margin-top:8px}#stats summary{cursor:pointer;color:var(--brick);font-size:13px}#stats .sources{margin:8px 0 0;padding-left:18px}#stats .sources li{margin:6px 0;font-size:13px}body.clean #topbar,body.clean #help,body.clean #tools,body.clean #status,body.clean #card,body.clean #touch,body.clean #walk-hint,body.clean #overview-hint,body.clean #stats{display:none!important}@media(max-width:720px){#topbar{flex-direction:column;align-items:start}#where{text-align:left}#tools{top:auto;bottom:14px;right:14px;left:auto}h1{font-size:24px}#walk-hint{left:14px;right:14px;bottom:auto;top:108px;transform:none;flex-wrap:wrap}#walk-hint p{white-space:normal}#overview-hint{left:14px;right:14px;bottom:auto;top:108px;transform:none}#compass{top:168px}#stats{top:168px;max-height:46vh;width:min(320px,calc(100% - 28px))}}@media(pointer:coarse){#touch{display:block}#card{bottom:118px}}#drawer{display:contents}#menu-btn,.touch-only{display:none}@media(max-width:700px),(pointer:coarse)and (max-height:520px){html,body,#app{overscroll-behavior:none}body{touch-action:manipulation;-webkit-text-size-adjust:100%}#view,#touch,#touch button{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,select,#card{-webkit-tap-highlight-color:transparent}.keys-only{display:none}.touch-only{display:revert}span.touch-only{display:inline}#topbar{top:calc(8px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));right:auto;max-width:calc(100% - 96px - env(safe-area-inset-left) - env(safe-area-inset-right));display:block;padding:5px 10px 6px;box-shadow:0 4px 12px #1e100638}#topbar .eyebrow{display:none}#topbar h1{font-size:15px}#where{margin-top:2px;max-width:none;font-size:12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#menu-btn{display:block;position:absolute;top:calc(8px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));z-index:8;min-width:72px;padding:8px 12px;font-size:15px;box-shadow:0 4px 12px #1e10064d}#help:not([hidden])~#menu-btn,#help:not([hidden])~#drawer{display:none}#drawer{display:none}body.menu-open #drawer{display:flex;flex-direction:column;gap:8px;position:absolute;top:calc(52px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));z-index:7;width:min(300px,calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:calc(100% - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}body.menu-open #drawer #stats,body.menu-open #drawer #tools{position:static;width:auto;max-height:none;flex:0 0 auto}#stats{order:-1}#stats-body{overflow:visible;padding:8px 10px 10px}#stats-toggle{padding:8px 10px;font-size:14px}#stats .year-readout{font-size:20px}#stats .year-pop{font-size:15px}#stats .year-step{flex-basis:40px;width:40px;height:40px}#stats .year-drop summary{font-size:14px;padding:6px 0}#stats p,#stats li{font-size:13.5px}#tools{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;padding:8px}#tools label{font-size:12px}#tools select{padding:6px;font-size:14px}#tools #mode{grid-column:1 / -1;padding:8px 10px;font-size:14px}#card{top:calc(56px + env(safe-area-inset-top));bottom:auto;left:calc(8px + env(safe-area-inset-left));width:min(300px,calc(100% - 96px - env(safe-area-inset-left)));padding:5px 9px 6px;pointer-events:auto;cursor:pointer;box-shadow:0 4px 12px #1e100638}#card .tag{font-size:10px}#card h2{font-size:15px}#card .use{margin:1px 0 0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#card #card-notes{display:none}#card.expanded .use{white-space:normal}#card.expanded #card-notes{display:block;margin-top:4px;max-height:38vh;overflow-y:auto;font-size:12.5px;line-height:1.35}#card:after{content:"Tap for notes";display:block;margin-top:2px;font-size:10.5px;color:var(--brick)}#card.expanded:after{content:"Tap to close"}#touch{left:calc(10px + env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom))}#touch .pad{display:flex;flex-direction:column;align-items:center}#touch .pad button{min-width:0;width:52px;height:52px;margin:2px;padding:0;border-radius:50%;font-size:0;background:#7c342cb8;border-color:#4e221ccc}#touch .pad button:before{font-size:20px;line-height:1}#touch .pad button[data-key=KeyW]:before{content:"▲"}#touch .pad button[data-key=KeyA]:before{content:"◀"}#touch .pad button[data-key=KeyS]:before{content:"▼"}#touch .pad button[data-key=KeyD]:before{content:"▶"}body[data-mode=overview] #touch{display:none}#walk-hint{top:auto;left:auto;right:calc(10px + env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom));transform:none;padding:0}#walk-hint p{display:none}#walk-hint button{padding:8px 12px;font-size:14px}#overview-hint{top:auto;left:calc(8px + env(safe-area-inset-left));right:calc(8px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));max-width:none;padding:5px 10px;transform:none}#overview-hint p{font-size:12.5px}#compass{top:calc(52px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));width:44px;height:44px}#compass .rose span{top:3px;font-size:11px}#compass .needle{top:15px;margin-left:-5px;border-left-width:5px;border-right-width:5px;border-bottom-width:18px}#status{bottom:calc(10px + env(safe-area-inset-bottom));max-width:calc(100% - 16px);font-size:13px}#help{padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}#help .sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px}#help h2{font-size:18px}#help p{font-size:14px;line-height:1.4;margin:8px 0}#help li{font-size:13.5px;margin:4px 0}#help .row button{padding:9px 12px;font-size:15px}}body.clean #menu-btn{display:none!important}
