* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #e8dcc0; font: 14px/1.45 "Iowan Old Style", Georgia, serif; color: #2b2118; }
#viewer, #live, #tint { position: fixed; inset: 0; }
/* tint darkens the drawing only; the live canvas (cars, lights, labels) sits above it and shades itself */
#tint { pointer-events: none; z-index: 2; mix-blend-mode: multiply; transition: background 2s; }
#live { pointer-events: none; z-index: 3; }

#bar { position: fixed; z-index: 10; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
#bar > * { pointer-events: auto; }
.brand { background: rgba(255, 250, 238, .92); padding: 6px 14px; border-radius: 22px; box-shadow: 0 2px 10px rgba(60, 40, 20, .18); font-size: 18px; }
.brand b { font-weight: 700; letter-spacing: .01em; } .brand span { font-style: italic; color: #7a5b3a; }
#clock { background: rgba(255, 250, 238, .92); padding: 6px 12px; border-radius: 22px; box-shadow: 0 2px 10px rgba(60, 40, 20, .18); font-size: 13px; }
nav { margin-left: auto; display: flex; gap: 6px; }
nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 250, 238, .92); box-shadow: 0 2px 10px rgba(60, 40, 20, .18); font-size: 17px; cursor: pointer; }
nav button.on { background: #b65c34; color: #fff; }

.panel { position: fixed; z-index: 11; top: 64px; right: 12px; width: 320px; max-height: calc(100% - 80px); overflow: auto; background: rgba(255, 250, 238, .97);
  border-radius: 14px; box-shadow: 0 6px 24px rgba(60, 40, 20, .25); padding: 12px 14px; }
.panel h2 { margin: 2px 0 8px; font-size: 19px; }
.panel label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.small { font-size: 12px; color: #6b5843; }
.hidden { display: none; }
#q { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid #d6c6a6; font: inherit; background: #fff; }
#results div { padding: 6px 4px; border-bottom: 1px solid #efe4cc; cursor: pointer; }
#results div:hover { background: #f6ecd6; }
#results i { color: #8a6c4c; font-size: 12px; }

#pop { position: fixed; z-index: 12; max-width: 300px; background: rgba(255, 250, 238, .98); border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 6px 24px rgba(60, 40, 20, .28); font-size: 13px; }
#pop h3 { margin: 0 0 4px; font-size: 16px; }
#pop .x { position: absolute; top: 4px; right: 8px; cursor: pointer; color: #8a6c4c; }
a { color: #a24a24; }

.openseadragon-container { background: #e8dcc0 !important; }

@media (max-width: 640px) {
  .brand { font-size: 15px; } #clock { display: none; }
  .panel { left: 12px; right: 12px; width: auto; }
}
