:root {color-scheme:light; --paper:#f8f7f2; --ink:#202720; --rule:#c9ccc1; --rust:#a74831; font:16px/1.45 "DM Sans",Arial,sans-serif;color:var(--ink);background:var(--paper)}
* {box-sizing:border-box}
body {margin:0}
header,main,footer {width:min(1250px,92%);margin:auto}
header,footer,.mapbar,.sectionhead {display:flex;align-items:center;justify-content:space-between;gap:12px}
header {min-height:78px;border-bottom:1px solid var(--rule)}
a {color:inherit}
.brand,.contribute {display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:700}
.brand {font-size:1.12rem;letter-spacing:-.045em}
.brandmark {width:30px;height:30px;border-radius:50%;background:conic-gradient(#da5b42 0 25%,#edb941 0 50%,#3f7861 0 75%,#487eac 0)}
.contribute {border-radius:30px;background:var(--ink);color:white;padding:9px 17px;font-size:.94rem}
.contribute b {font-size:1.2rem}
main {padding:32px 0 50px}
h1,h2,p {margin:0}
h1,h2 {font-family:"Instrument Serif",Georgia,serif;font-weight:400;line-height:1.08;letter-spacing:-.045em}
h1 {font-size:clamp(2.75rem,5.7vw,5.4rem)}
h1 span {color:var(--rust)}
.intro {margin:8px 0 24px;color:#495248}
.layout {display:grid;grid-template-columns:minmax(0,2.3fr) minmax(245px,1fr);gap:20px}
.atlas,.palette {border:1px solid var(--rule);border-radius:14px;background:#fff;overflow:hidden}
.mapbar,.palette {padding:16px 20px}
h2 {font-size:1.8rem}
button {font:inherit;color:inherit;cursor:pointer;background:white;border:1px solid var(--rule);border-radius:8px}
button:hover {border-color:#455648}
:focus-visible {outline:3px solid #264fb4;outline-offset:2px}
#fit,#retry {padding:5px 12px}
#map {height:clamp(340px,43vh,490px);background:#e4e7de;z-index:0}
#map-warning {padding:8px 12px;color:var(--rust)}
#filters {display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;margin-top:14px}
.choice {display:flex;align-items:center;gap:8px;padding:6px 9px;font-size:.91rem;text-align:left;border-color:transparent}
.choice[aria-pressed=true] {background:#e9eee5;border-color:#49634a;font-weight:700}
.choice:first-child {grid-column:1/-1}
.swatch,.pin {background:var(--tone);border:1px solid #0003;border-radius:50%;flex-shrink:0}
.swatch {width:15px;height:15px}
.pin {display:grid;place-items:center;width:28px;height:28px;border:3px solid white;box-shadow:0 1px 4px #233a;position:relative}
.pin b {background:white;border-radius:50%;font:700 12px/17px Arial;color:#17271a;width:17px;text-align:center;position:absolute;right:-8px;top:-7px}
.collection {margin-top:27px}
.sectionhead {border-bottom:1px solid var(--rule);padding-bottom:10px}
#status {color:#4d564c;font-size:.91rem}
#gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;margin-top:16px}
.card {text-align:left;padding:0 0 12px;border-radius:10px;overflow:hidden;min-width:0}
.photo {height:135px;display:grid;place-items:center;background:var(--tone,#e6e9df);font-size:.82rem}
.photo img {width:100%;height:100%;object-fit:cover;min-height:0}
.card strong,.card small {display:flex;align-items:center;gap:7px;margin:8px 12px 0}
.card small {color:#50594f;margin-top:2px;font-size:.85rem}
#message {color:#4d564c}
.pop {width:min(200px,47vw)}
.pop article+article {border-top:1px solid var(--rule);padding-top:8px;margin-top:8px}
.pop a,.pop img {display:block;max-width:100%}
.pop img {width:100%;height:90px;object-fit:cover;border-radius:5px;margin-bottom:5px}
.pop strong,.pop small {display:block;overflow-wrap:anywhere}
footer {border-top:1px solid var(--rule);padding:18px 0;font-size:.85rem}
@media(max-width:750px){
  header,main,footer {width:92%}
  header {min-height:62px}
  main {padding-top:22px}
  .layout {display:flex;flex-direction:column;gap:12px}
  .palette {order:-1;padding:12px}
  .palette h2 {font-size:1.35rem}
  #filters {display:flex;overflow-x:auto;margin-top:6px;padding:3px 2px 6px}
  .choice {flex:none;min-height:42px}
  #map {height:330px}
  #gallery {grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo {height:118px}
}
