/* EDITUA × Street Studio — site finder. Version 2.
   EKA identity as in the Report 4 storyscroll: Helvetica, black on white, mint #00D2A0, square corners.
   Map outlines stay white/black; colour is kept for the score bands and the owner classes. */

:root{
  --ink:#000; --ink2:#1f1f1f; --muted:#555; --faint:#8a8a86;
  --line:#000; --line2:#dcdcd8; --paper:#F4F4F2; --white:#fff; --mint:#00D2A0; --mint-soft:#c9f3e6;
  --warn:#fff1c7;
  --sans:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --top:50px; --pw:400px;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--sans);line-height:1.45;
  -webkit-font-smoothing:antialiased;font-size:15px;overflow:hidden}
a{color:var(--ink);text-decoration:none;border-bottom:1.5px solid var(--ink)}
button,select,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px #fff}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:12px;top:12px;z-index:100;background:var(--ink);color:#fff;padding:8px 12px}
.nomap{padding:24px;max-width:420px}
@media (hover:hover){ a:hover{background:var(--mint-soft)} }

/* ---------- top bar ---------- */
.topbar{position:fixed;left:0;right:0;top:0;height:var(--top);display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:0 16px;border-bottom:1px solid var(--line);background:#fff;z-index:20}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;font-size:15px}
.brand .eka{background:var(--ink);color:#fff;padding:2px 8px;font-weight:900;letter-spacing:.04em}
.brand .sep{color:var(--faint);font-weight:400}
.brand .title{font-weight:400}
.topnav{display:flex;gap:18px;font-size:13px;font-weight:700}
.topnav a{border-bottom:2px solid transparent}
@media (hover:hover){ .topnav a:hover{border-bottom-color:var(--ink);background:none} }

/* ---------- layout ---------- */
.app{position:fixed;left:0;right:0;top:var(--top);bottom:0}
.map{position:absolute;inset:0;background:#d9d8d2}
.panel{position:absolute;left:0;top:0;bottom:0;width:var(--pw);background:#fff;border-right:1px solid var(--line);
  overflow-y:auto;overscroll-behavior:contain;z-index:10;padding:0 0 28px}
.grip,.summary{display:none}

/* tabs */
.tabs{position:sticky;top:0;z-index:3;display:flex;background:#fff;border-bottom:1px solid var(--line)}
.tabs button{flex:1 1 auto;border:0;background:none;padding:12px 6px 10px;font-weight:700;font-size:13px;cursor:pointer;
  border-bottom:3px solid transparent;white-space:nowrap;min-height:44px}
.tabs button.on{border-bottom-color:var(--ink)}
.tabs b{display:inline-block;min-width:18px;padding:0 5px;background:var(--mint);font-size:12px;line-height:18px;margin-left:2px}
.tabs b:empty{display:none}
.tab{display:none;padding:4px 18px 8px}
.tab.on{display:block}
.h{font-size:12px;font-family:var(--mono);text-transform:uppercase;letter-spacing:.07em;font-weight:700;margin:20px 0 9px;
  padding-top:12px;border-top:1px solid var(--line2)}
.tab > .h:first-child,.intro + .h{border-top:0;padding-top:0;margin-top:16px}
.note{font-size:13px;color:var(--muted);margin:8px 0}
.hint{font-size:12.5px;color:var(--muted);margin:2px 0 10px}
.src{font-size:12px;color:var(--muted)}
.intro{position:relative;margin:14px 0 0;padding:10px 34px 10px 12px;background:var(--mint-soft);border-left:4px solid var(--mint);font-size:13.5px;line-height:1.4}
.intro b{color:#0a7a5c}
.intro a{margin-left:4px;font-weight:700}
.intro .ix{position:absolute;right:2px;top:2px;border:0;background:none;font-size:20px;cursor:pointer;width:32px;height:32px}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--ink);background:var(--ink);color:#fff;padding:7px 12px;
  font-weight:700;font-size:13px;cursor:pointer;border-radius:0;line-height:1.2;text-align:left;min-height:36px}
.btn.ghost{background:#fff;color:var(--ink)}
.btn.sm{padding:4px 9px;font-size:12.5px;min-height:30px}
.btn.mint{background:var(--mint);color:#000;border-color:var(--ink)}
.btn.on{background:var(--ink);color:#fff}
.btn[disabled]{opacity:.4;cursor:default}
@media (hover:hover){ .btn:hover{background:#222} .btn.ghost:hover{background:var(--mint-soft)} .btn.on:hover{background:#222} }
.row{display:flex;align-items:center}
.gap{gap:8px}
.wrap{flex-wrap:wrap}
.tight{margin-top:16px}
.check{display:flex;align-items:center;gap:8px;font-size:13px;margin:9px 0;cursor:pointer}
.check.inline{margin:4px 10px 4px 0}
.check input{width:18px;height:18px;accent-color:#000;margin:0;flex:0 0 auto}

/* presets */
.presets{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.preset{border:1.5px solid var(--ink);background:#fff;padding:8px 10px;text-align:left;cursor:pointer;line-height:1.2;min-height:48px}
.preset b{display:block;font-size:14px}
.preset small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.preset.on{background:var(--ink);color:#fff}
.preset.on small{color:#cfcfcb}
@media (hover:hover){ .preset:hover:not(.on){background:var(--mint-soft)} }

/* composer and filters */
.composer,.filters{margin-top:12px;border:1px solid var(--line2);background:var(--paper)}
.composer > summary,.filters > summary{list-style:none;cursor:pointer;padding:10px 12px;font-weight:700;font-size:13.5px;display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-height:40px}
.composer > summary::-webkit-details-marker,.filters > summary::-webkit-details-marker{display:none}
.composer > summary span::before,.filters > summary span::before{content:"▸ ";font-size:11px}
.composer[open] > summary span::before,.filters[open] > summary span::before{content:"▾ "}
.composer > summary small,.filters > summary small{font-weight:400;color:var(--muted);font-size:12px;text-align:right}
.composer > *:not(summary),.filters > *:not(summary){margin-left:12px;margin-right:12px}
.composer > .row:last-child,.filters > .row:last-child{margin-bottom:12px}
.terms{display:flex;flex-direction:column;gap:2px}
.term{background:#fff;border:1px solid var(--line2);padding:7px 8px 6px}
.term.off{opacity:.55}
.term .tt{display:flex;align-items:center;gap:6px;font-size:13px}
.term .tt .nm{flex:1 1 auto;font-weight:700;line-height:1.15;cursor:help}
.term .tt .nm small{display:block;font-weight:400;color:var(--muted);font-size:12px}
.term .dir{border:1.5px solid var(--ink);background:#fff;width:34px;height:30px;cursor:pointer;font-weight:900;font-size:15px;line-height:1;padding:0;flex:0 0 auto}
.term .dir.need{background:var(--ink);color:#fff}
.term .rm{border:0;background:none;cursor:pointer;font-size:18px;color:var(--faint);padding:0;width:30px;height:30px;flex:0 0 auto}
.term .tw{display:flex;align-items:center;gap:8px;margin-top:3px}
.term .tw input{flex:1 1 auto}
.term .tw output{font-family:var(--mono);font-size:12px;width:42px;text-align:right}
.twarn{margin:6px 0 2px;padding:5px 8px;background:var(--warn);font-size:12px;line-height:1.35}
.addrow{margin:8px 12px}
.addrow select{width:100%;border:1.5px solid var(--ink);background:#fff;padding:7px 8px;font-size:13px;border-radius:0;min-height:38px}

/* range inputs */
input[type=range]{-webkit-appearance:none;appearance:none;background:transparent;height:28px;margin:0;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:3px;background:#000}
input[type=range]::-moz-range-track{height:3px;background:#000}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;background:#fff;border:2px solid #000;margin-top:-8.5px;border-radius:0}
input[type=range]::-moz-range-thumb{width:17px;height:17px;background:#fff;border:2px solid #000;border-radius:0}
.slider{display:flex;align-items:center;gap:10px;font-size:13px;margin:8px 0}
.slider label{width:72px;font-weight:700}
.slider input{flex:1 1 auto}
.slider output{font-family:var(--mono);font-size:12px;min-width:64px;text-align:right}

.hist{height:46px;display:flex;align-items:flex-end;gap:1px;margin:4px 10px 0}
.hist i{flex:1 1 0;background:#cfcfca;min-height:1px}
.hist i.in{background:var(--ink)}
.range{position:relative;height:30px;margin:0 0 2px}
.range input{position:absolute;left:0;right:0;width:100%;pointer-events:none}
.range input.top{z-index:3}
.range input::-webkit-slider-thumb{pointer-events:auto}
.range input::-moz-range-thumb{pointer-events:auto}
.range input + input::-webkit-slider-runnable-track{background:transparent}
.range input + input::-moz-range-track{background:transparent}
.rangeread{display:flex;justify-content:space-between;font-size:13px;margin:2px 0 8px;gap:10px}
.rangeread span:first-child{font-weight:700;white-space:nowrap}
.rangeread span:last-child{color:var(--muted);text-align:right}

/* sites */
.listmode{display:flex;margin:14px 0 0;border:1.5px solid #000}
.listmode button{flex:1 1 0;border:0;background:#fff;padding:8px;font-weight:700;font-size:13px;cursor:pointer;min-height:40px}
.listmode button + button{border-left:1.5px solid #000}
.listmode button.on{background:#000;color:#fff}
.facet{margin:10px 0}
.fh{font-size:12px;font-weight:700;margin-bottom:5px}
.chips{display:flex;flex-wrap:wrap;gap:5px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line2);background:#fff;padding:4px 8px;font-size:12.5px;cursor:pointer;min-height:32px;color:#333}
.chip i{width:11px;height:11px;flex:0 0 auto;border:1px solid #000}
.chip small{color:var(--muted);font-family:var(--mono);font-size:12px}
.chip.any{border-color:var(--ink);color:#000}
.chip.on{border-color:var(--ink);background:var(--ink);color:#fff}
.chip.on small{color:#cfcfcb}
.chip.all{font-weight:700}
.chip.all.on{background:#fff;color:#000;border-color:var(--ink);box-shadow:inset 0 -3px 0 var(--mint)}
.listhead{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;font-size:13px;font-weight:700;gap:8px}
.listhead select{border:1.5px solid var(--ink);background:#fff;padding:5px 6px;font-size:12.5px;border-radius:0;min-height:34px}
.sitelist{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.sitelist li{border-bottom:1px solid var(--line2);padding:8px 2px 8px 0;display:flex;gap:9px;align-items:flex-start;cursor:pointer;flex-wrap:wrap}
.sitelist li.sel{background:var(--paper)}
@media (hover:hover){ .sitelist li:hover{background:var(--paper)} .sitelist .empty:hover{background:none} }
.sitelist .sc{flex:0 0 40px;height:40px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:15px;border:1.5px solid #000}
.sitelist .bd{flex:1 1 0;min-width:0;font-size:13.5px;line-height:1.3}
.sitelist .bd b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sitelist .bd span{color:var(--muted);font-size:12.5px;display:block}
.sitelist .bd .added{font-size:12px;color:var(--faint)}
.sitelist .ow{display:inline-block;width:10px;height:10px;border:1px solid #000;margin-right:4px;vertical-align:-1px}
.sitelist .cz{font-style:normal;color:#9a3b00;font-weight:700}
.sitelist .add{flex:0 0 auto;border:1.5px solid var(--ink);background:#fff;width:40px;height:40px;font-weight:900;cursor:pointer;font-size:16px}
.sitelist .add.in{background:var(--mint)}
.sitelist .empty{color:var(--muted);cursor:default;font-size:13px;padding:14px 0}
.mylist .no{flex:0 0 20px;font-family:var(--mono);font-size:12px;color:var(--muted);padding-top:12px;text-align:right}
.more{margin-top:10px;width:100%;justify-content:center}
.routes{margin:12px 0}
.routes .btn{margin:0 6px 6px 0}

/* field notes */
.notes{flex:1 1 100%;margin:4px 0 2px 29px;border:1px solid var(--line2);background:#fff;cursor:default}
.notes > summary{list-style:none;cursor:pointer;padding:8px 10px;font-size:13px;font-weight:700;min-height:38px}
.notes > summary::-webkit-details-marker{display:none}
.notes > summary::before{content:"▸ ";font-size:11px}
.notes[open] > summary::before{content:"▾ "}
.notes > summary i{font-style:normal;color:#0a7a5c}
.notes .nq{font-size:12.5px;font-weight:700;margin:8px 10px 4px}
.notes .nq small{font-weight:400;color:var(--muted)}
.notes .seg{display:flex;margin:0 10px;border:1.5px solid #000}
.notes .seg button{flex:1 1 0;border:0;background:#fff;min-height:36px;font-weight:700;cursor:pointer;font-size:13px}
.notes .seg button + button{border-left:1px solid #000}
.notes .seg button.on{background:#000;color:#fff}
.notes .nt{display:block;margin:8px 10px 0;font-size:12.5px}
.notes .nt span{display:block;font-weight:700;margin-bottom:2px}
.notes textarea{width:100%;border:1px solid #999;padding:6px;font-size:14px;resize:vertical;border-radius:0;min-height:36px}
.notes .src{margin:6px 10px 10px}

/* map overlays */
.mapui{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;z-index:5}
.basesw{position:absolute;left:12px;top:12px;display:flex;pointer-events:auto;background:#fff;border:1.5px solid #000}
.basesw button{border:0;background:#fff;padding:6px 10px;font-weight:700;font-size:12.5px;cursor:pointer;border-right:1px solid var(--line2);min-height:34px}
.basesw button:last-child{border-right:0}
.basesw button.on{background:#000;color:#fff}
.legend{position:absolute;left:12px;bottom:30px;background:#fff;border:1.5px solid #000;padding:8px 10px;font-size:12px;pointer-events:auto;min-width:230px;max-width:280px}
.legend .lt{display:flex;justify-content:space-between;gap:10px;width:100%;border:0;background:none;padding:0;font-weight:700;font-size:12.5px;margin-bottom:5px;cursor:pointer;text-align:left;min-height:24px;align-items:center}
.legend .lt span{font-family:var(--mono);font-size:15px;padding:0 4px}
.legend .bands{display:flex;height:12px;border:1px solid #000}
.legend .bands i{flex:1 1 0}
.legend .bands i.dim{opacity:.18}
.legend .bl{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--muted);margin-top:2px}
.legend .lcap{font-size:12px;color:var(--muted);margin-top:2px}
.legend .ow{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;margin-top:8px}
.legend .ow span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.legend .ow i{width:10px;height:10px;border:1px solid #000;flex:0 0 auto}
.legend .ju{display:flex;align-items:center;gap:6px;margin-top:6px}
.legend .ju i{width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #000}
.legend .pl{display:grid;gap:2px;margin-top:6px}
.legend .pl span{display:flex;align-items:center;gap:6px}
.legend .pl i{width:18px;height:0;border-top:2px dashed #000;flex:0 0 auto}
.legend .pl i.pw{border-top-color:#fff;outline:1px solid #000;outline-offset:1px}
.legend.mini .ju,.legend.mini .pl,.legend.mini .lcap{display:none}
.legend.mini .ow{grid-template-columns:repeat(3,auto);gap:1px 8px;margin-top:5px}
.legend.mini .ow span{font-size:11.5px}
.status{position:absolute;left:12px;top:56px;max-width:calc(100% - 76px);background:#000;color:#fff;font-size:12.5px;padding:5px 9px;display:none;pointer-events:none}
.status.on{display:block}

/* card */
.card{position:absolute;right:60px;top:12px;width:350px;max-height:calc(100% - 24px);overflow-y:auto;background:#fff;border:1.5px solid #000;
  z-index:12;padding:0 16px 16px;box-shadow:6px 6px 0 rgba(0,0,0,.18)}
.cardhead{position:sticky;top:0;height:0;z-index:2;display:flex;justify-content:flex-end}
.card .x{border:0;background:#fff;font-size:26px;cursor:pointer;line-height:1;width:40px;height:40px;margin:2px -14px 0 0}
.card h3{margin:0 30px 2px 0;font-size:17px;line-height:1.2}
.card .k{font-family:var(--mono);font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:14px 30px 4px 0}
.card .big{display:flex;align-items:center;gap:10px;margin:10px 0}
.card .big .sc{width:52px;height:52px;flex:0 0 52px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;border:2px solid #000}
.card .big div{font-size:12.5px;line-height:1.35;color:var(--muted)}
.card .big b{color:#000;font-size:13.5px}
.card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13px;margin:10px 0}
.card dt{color:var(--muted)}
.card dd{margin:0;overflow-wrap:anywhere}
.card dd small{color:var(--muted);font-size:12px}
.card .caution{margin:8px 0;padding:7px 9px;background:#ffe1cc;border-left:4px solid #c2410c;font-size:13px;font-weight:700}
.card .caution.soft{background:var(--warn);border-left-color:#b08900;font-weight:400}
.card .bars{margin:6px 0 4px}
.card .bars .br{display:grid;grid-template-columns:1fr 70px 30px;gap:6px;align-items:center;font-size:12.5px;margin:3px 0}
.card .bars .tr{height:8px;background:var(--line2);position:relative}
.card .bars .tr i{position:absolute;left:0;top:0;bottom:0;background:#000}
.card .bars .v{font-family:var(--mono);text-align:right;font-size:12px}
.card .bars .lab small{color:var(--muted);font-size:12px}
.card .acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;position:sticky;bottom:-16px;background:#fff;padding:8px 0;border-top:1px solid var(--line2)}
.card .acts .btn{font-size:12.5px;padding:7px 9px;min-height:38px}
.card .warn{font-size:12.5px;color:var(--muted);border-left:3px solid var(--mint);padding:2px 0 2px 8px;margin:10px 0 0}
.card .sub{font-size:12.5px;font-weight:700;margin:12px 0 2px}
.card .sub small{font-weight:400;color:var(--muted)}

/* version 3 additions */
.hiddennote{font-size:12.5px;color:var(--muted);margin:10px 0 0}
.hiddennote:empty{display:none}
.linkbtn{border:0;background:none;padding:0 2px;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;color:#000}
.sitelist .pl{font-style:normal;color:#5a4a00}
.card .facts{margin:2px 0 0;font-size:13px;font-weight:700}
.card .acts .nav{margin-left:auto;display:inline-flex;gap:4px}
.card .acts .nav .btn{min-width:40px;justify-content:center;font-size:18px;padding:4px 8px}
.card .more-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.card .more-links .btn{font-size:12.5px;padding:6px 9px;min-height:36px}
.legend{pointer-events:none}
.legend .lt{pointer-events:auto}
.legend:empty{display:none}
.nomapmode .basesw,.nomapmode .legend{display:none}
.nomapmode .nomap{padding:64px 24px 24px}
.summary .st{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:821px) and (max-width:1120px){
  .card{left:var(--pw);right:0;top:auto;bottom:0;width:auto;max-height:55%;border:0;border-top:2px solid #000;box-shadow:0 -6px 0 rgba(0,0,0,.12)}
}

/* about */
.about h3{font-size:15px;margin:18px 0 6px}
.about p,.about li{font-size:13.5px}
.about ul,.about ol{padding-left:18px}
.about table{border-collapse:collapse;font-size:12.5px;width:100%}
.about td,.about th{border-bottom:1px solid var(--line2);padding:4px 6px 4px 0;text-align:left;vertical-align:top}

/* maplibre bits */
.maplibregl-ctrl-group{border-radius:0 !important;border:1.5px solid #000;box-shadow:none !important}
.maplibregl-ctrl-group button{border-radius:0 !important}
.maplibregl-ctrl-attrib{font-size:11px}
.maplibregl-ctrl-scale{border-color:#000;font-size:11px}

@media (min-width:821px){ .map,.mapui{left:var(--pw)} }

/* ---------- phones and narrow windows: map on top, panel as a bottom sheet ---------- */
@media (max-width:820px){
  :root{--top:44px}
  .hide-s{display:none}
  .brand{font-size:14px}
  .panel{left:0;right:0;top:auto;width:auto;height:46%;border-right:0;border-top:1.5px solid #000;
    transition:height .25s ease;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .panel.min{height:118px;overflow:hidden}
  .panel.max{height:calc(100% - 8px)}
  .map,.mapui{bottom:46%}
  body.pmin .map, body.pmin .mapui{bottom:118px}
  body.pmax .map, body.pmax .mapui{bottom:46%}
  .grip{display:block;width:100%;height:28px;background:#fff;cursor:grab;position:sticky;top:0;z-index:4;touch-action:none}
  .grip span{display:block;width:48px;height:5px;background:#000;margin:11px auto 0}
  .summary{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:0 14px 8px;background:#fff;position:sticky;top:28px;z-index:4;cursor:pointer}
  .summary .sm-hint{display:none;color:var(--muted);font-size:12px}
  .panel.min .summary .sm-hint{display:inline}
  .tabs{top:56px}
  .tabs button{font-size:13px;padding:10px 4px 8px}
  .btn,.btn.sm,.chip,.basesw button,.listhead select{min-height:40px}
  .term .dir,.term .rm{width:40px;height:40px}
  .check{min-height:36px}
  .sitelist .bd{font-size:14px}
  /* the card is a sheet over the bottom of the screen: the map stays visible above it */
  .card{left:0;right:0;top:auto;bottom:0;width:auto;max-height:60%;border:0;border-top:2px solid #000;box-shadow:0 -6px 0 rgba(0,0,0,.12);padding:0 14px 12px}
  .card .acts{bottom:-12px}
  .legend{left:8px;bottom:26px;max-width:calc(100% - 70px);min-width:200px;padding:6px 8px}
  .basesw{left:8px;top:8px;max-width:calc(100% - 66px);overflow-x:auto;scrollbar-width:none}
  .basesw button{flex:0 0 auto}
  .basesw button{padding:5px 9px;font-size:12.5px}
  .status{left:8px;top:54px;max-width:calc(100% - 66px)}
  .maplibregl-ctrl-group button{width:40px !important;height:40px !important}
  select,textarea,input[type=text],input[type=search]{font-size:16px !important}
  input[type=range]::-webkit-slider-thumb{width:28px;height:28px;margin-top:-12.5px}
  input[type=range]::-moz-range-thumb{width:24px;height:24px}
  input[type=range]{height:40px}
  .range{height:42px}
  .notes .seg button,.card .acts .btn,.notes > summary,.check,.listmode button{min-height:44px}
  .intro .ix{width:44px;height:44px}
  .legend .lt{min-height:36px}
  .chip.all{min-width:48px;justify-content:center}
  .legend .bl,.legend.mini .ow span,.notes .nq small,.card .sub small,.maplibregl-ctrl-attrib,.maplibregl-ctrl-scale{font-size:12px}
  .grip{height:34px;padding-top:14px}
  .grip span{margin:0 auto}
  .summary{top:34px;height:30px;align-items:center;touch-action:none}
  .tabs{top:63px}
  .legend{bottom:30px}
  .card .acts{flex-wrap:nowrap;overflow-x:auto}
}
@media (max-width:820px) and (max-height:560px){ .panel{height:58%} .map,.mapui{bottom:58%} }
@media (prefers-reduced-motion:reduce){ .panel{transition:none} }

/* version 4 */
.legend.mini .bl{display:none}
.typing .legend{display:none}
.range{cursor:pointer}
#routes:empty{display:none}
@media (max-width:820px){
  .card .more-links .btn{min-height:44px}
  #quick .btn{min-width:44px;justify-content:center}
  .legend.mini{min-width:0;padding:5px 8px}
  .legend.mini .lt{margin-bottom:3px}
}
/* version 5: open ground inside built parcels */
.legend .in{display:flex;align-items:center;gap:6px;margin-top:6px}
.legend .in i{width:14px;height:10px;border:2px solid #ffd60a;background:#fff;outline:1px solid #000;flex:0 0 auto}
.legend.mini .in{display:none}
@media (max-width:820px){ .hiddennote{line-height:1.5} .hiddennote .linkbtn{display:inline-block;padding:9px 3px;margin:-4px 0} }
/* version 5: oblique photos inside the page */
.obl{position:fixed;z-index:25;left:calc(var(--pw) + 12px);right:12px;top:calc(var(--top) + 12px);bottom:12px;background:#fff;border:2px solid #000;
  box-shadow:6px 6px 0 rgba(0,0,0,.18);display:flex;flex-direction:column}
.obl[hidden]{display:none}
.oblhead{display:flex;align-items:center;gap:8px 10px;padding:6px 6px 6px 12px;border-bottom:1.5px solid #000;flex-wrap:wrap}
.obltitle{flex:1 1 180px;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.obltitle span{color:var(--muted)}
.obldirs{display:flex;border:1.5px solid #000}
.obldirs button{border:0;border-left:1px solid #000;background:#fff;padding:5px 9px;font-size:12.5px;font-weight:700;cursor:pointer;min-height:34px;white-space:nowrap}
.obldirs button:first-child{border-left:0}
.obldirs button.on{background:#000;color:#fff}
.oblx{border:0;background:#fff;font-size:26px;line-height:1;width:40px;height:40px;cursor:pointer}
.oblbody{position:relative;flex:1 1 auto;min-height:0;background:#d9d8d2}
.oblbody iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.oblload{position:absolute;left:14px;top:12px;margin:0;font-size:13px;color:var(--muted)}
.oblsrc{margin:0;padding:5px 12px;font-size:12px;color:var(--muted);border-top:1px solid var(--line2)}
@media (max-width:820px){
  .obl{left:0;right:0;top:0;bottom:0;z-index:30;border:0;box-shadow:none}
  .oblhead{padding:4px 4px 6px 10px}
  .obldirs{order:3;width:100%;overflow-x:auto}
  .obldirs button{flex:1 0 auto;min-height:44px;padding:6px 8px}
  .oblx{width:44px;height:44px}
  #oblNew{min-height:40px}
  .oblsrc{display:none}
}
/* version 7 */
.sitelist button.bd{border:0;background:none;padding:0;margin:0;text-align:left;font:inherit;color:inherit;cursor:pointer;display:block}
.card .acts .nav.off{font-size:12px;color:var(--muted);align-self:center}
.obllab{align-self:center;padding:0 8px;font-size:12px;color:var(--muted);border-right:1px solid #000;white-space:nowrap}
/* phones held sideways are wider than 820 px: the photos take the whole screen */
@media (min-width:821px) and (max-height:500px){
  .obl{left:0;right:0;top:0;bottom:0;z-index:30;border:0;box-shadow:none}
  .oblhead{flex-wrap:nowrap;padding:4px 4px 4px 10px}
  .obltitle{flex:1 1 0}
  .obldirs{flex:0 1 auto;min-width:0;overflow-x:auto}
  .obldirs button{min-height:40px}
  .obllab,.oblsrc{display:none}
}
/* touch screens wider than 820 px (phones sideways, tablets): finger-sized controls, and no zoom on fields in iOS */
@media (pointer:coarse) and (min-width:821px){
  .btn,.btn.sm,.chip,.basesw button,.listhead select{min-height:40px}
  .term .dir,.term .rm{width:40px;height:40px}
  .check{min-height:36px}
  .maplibregl-ctrl-group button{width:40px !important;height:40px !important}
  select,textarea,input[type=text],input[type=search]{font-size:16px !important}
  input[type=range]{height:40px}
  input[type=range]::-webkit-slider-thumb{width:28px;height:28px;margin-top:-12.5px}
  .range{height:42px}
  .intro .ix{width:44px;height:44px}
  .notes .seg button,.card .acts .btn,.notes > summary,.listmode button{min-height:44px}
}
@media (max-width:820px){
  /* the list comes right under the filters; the notes about it follow the list */
  .tab[data-pane="sites"].on{display:flex;flex-direction:column}
  .tab[data-pane="sites"] > #hiddenNote{order:9}
  .tab[data-pane="sites"] > #sitesNote{order:10}
  #panel{scroll-padding-top:112px;scroll-padding-bottom:12px}
  .obllab{display:none}
}
/* version 8: a short way back to the region picker on phones */
.show-s{display:none}
@media (max-width:820px){ .show-s{display:inline} }
@media (max-width:820px){ .topnav .regionlink{display:inline-flex;align-items:center;min-height:44px} }
@media (max-width:380px){ .topnav{gap:12px} .brand{gap:6px} .brand .sep{display:none} }
