/* Book-inspired Atlas: ivory paper, sage terrain, lake blue, and fine ink rules.
   Presentation only. Map layers, source colors, report bands, and geometry are unchanged. */
:root{color-scheme:light;--paper:#f4f0e6;--sheet:#fffdf7;--ink:#303b35;--muted:#60685e;--line:#d2d1c3;--green:#365b4c;--cream:var(--paper);--red:#8c5143;--sage:#e0e6d8;--blue:#e2edf0;--clay:#f1e2d8;--shadow:0 5px 22px #3b413314;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper)}
body{background:var(--paper)}
button{background:var(--sheet);color:var(--green);border-color:#b8c0b2;border-radius:6px;font-weight:550;transition:none}
button:hover{background:#e8eddf;border-color:#839682}
button[aria-pressed=true],.primary{background:var(--green);color:#fffdf7;border-color:var(--green)}
.primary:hover{background:#274b3e}
button:disabled{opacity:.55}
a{color:#356371}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #4c7180;outline-offset:3px}
input[type=checkbox],input[type=range]{accent-color:var(--green)}
::selection{background:#d2e2e5;color:#213d43}
#sidebar{width:370px;flex-basis:370px;padding:25px 22px 34px;background:var(--paper);border-right:1px solid #c4c8b9;scrollbar-color:#a7b2a0 var(--paper)}
#sidebar .brand-row{position:relative;align-items:center;padding-bottom:20px;margin-bottom:10px;border-bottom:1px solid #9eaa94}
#sidebar .brand{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:30px;line-height:1.1;letter-spacing:1.7px;white-space:normal;text-transform:uppercase;color:var(--ink)}
#sidebar .brand .brand-north{display:block;color:var(--ink);font-size:23px;letter-spacing:2px}
#sidebar .brand .brand-atlas{display:block;color:var(--green);font-size:37px;letter-spacing:5px;margin-top:3px}
#sidebar .brand-stamp{display:block;width:52px;height:52px;margin-left:auto;color:#8a9679;opacity:.85}
#sidebar .brand-stamp svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round}
#sidebar #audit-build-status{background:#ece7d8;border:1px solid #d8ceba;border-left:3px solid #a88c54;border-radius:4px;color:#665936;font-size:10px;padding:8px 10px;margin:9px 0 3px;line-height:1.5}
#sidebar .sidebar-heading h2{font:400 19px/1.25 Georgia,serif;color:var(--ink)}
#sidebar .sidebar-heading>span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
#sidebar .state-section{padding-top:16px}
#sidebar .state-controls{gap:7px;margin-top:12px}
#sidebar .state-controls button{min-height:42px;color:#4b5b4c;border-color:#bec6b6;background:#fbf9f1}
#sidebar .state-controls button[aria-pressed=true]{background:var(--sage);color:#2e513e;border-color:#9bac93}
#sidebar .state-controls button:hover{background:#d5dfcd;border-color:#8c9f82}
#sidebar .field>span,.field>span{color:#52604f;font-size:12px;font-weight:550}
#sidebar .field input,#sidebar .field select,.field input,.field select,.field textarea,.search-field input{background:var(--sheet);border:1px solid #bac2b4;border-radius:6px;color:var(--ink);font-size:13px}
#sidebar .field input:focus,.field input:focus,.field textarea:focus,.search-field input:focus{background:#fff;border-color:#4c7180}
input::placeholder,textarea::placeholder{color:#70786c;opacity:1}
#sidebar .layer-search{margin:16px 0 7px}
#sidebar .help,#sidebar .quiet,#sidebar .sidebar-section p,.help,.quiet{color:var(--muted)}
#sidebar .sidebar-fold>summary,#sidebar .sidebar-section>summary{color:#465747;font-size:13px;font-weight:600;letter-spacing:0}
#sidebar .preset-section{border-color:var(--line)}
#sidebar .preset-buttons button{background:#faf8f0;border-color:#c3c9bb;color:#415541}
#sidebar .preset-buttons button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--sheet)}
#sidebar .tone-legend{color:#55634f;gap:14px}
#sidebar .tone-icon{width:23px;height:23px;flex-basis:23px;border-radius:6px;border-width:1px;box-shadow:none}
#sidebar .tone-icon svg{display:block;width:17px;height:17px}
#sidebar .tone-icon.positive{background:#e0e8d5;color:#3b5b36;border-color:#bacbb0}
#sidebar .tone-icon.negative{background:var(--clay);color:#854d3a;border-color:#d4b8a5}
#sidebar .tone-icon.neutral{background:var(--blue);color:#426773;border-color:#b3cad0}
#sidebar .tone-legend .tone-icon{width:19px;height:19px;flex-basis:19px}
#sidebar .tone-legend .tone-icon svg{width:14px;height:14px}
.atlas-icon,.atlas-icon *{stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
#sidebar #selected-layers-only{background:#e8eddf;border-color:#bac6af;color:#36513a;border-radius:6px}
#sidebar #selected-layers-only[aria-pressed=true]{background:var(--green);color:var(--sheet);border-color:var(--green)}
#sidebar #hide-all{color:#626c5d}
#sidebar #hide-all:hover{background:#e8e7dc}
#sidebar .category-group{--topic:#dce5d1;--topic-ink:#42603b;background:var(--sheet);border:1px solid #cbd0c0;border-radius:7px;margin:10px 0;box-shadow:0 2px 4px #40452f06}
#sidebar .category-group[data-group=community]{--topic:#dce8ec;--topic-ink:#446b78}
#sidebar .category-group[data-group=daily]{--topic:#ece5d2;--topic-ink:#75623d}
#sidebar .category-group[data-group=environment]{--topic:#eadfd4;--topic-ink:#785c49}
#sidebar .category-group[data-group=hazards]{--topic:#ecdcd4;--topic-ink:#865b49}
#sidebar .category-group[data-group=saved]{--topic:#e4e0e9;--topic-ink:#665c75}
#sidebar .category-group>summary{min-height:76px;padding:13px 12px;gap:12px;font:400 19px/1.2 Georgia,serif;color:var(--ink);background:#faf8f0}
#sidebar .category-group>summary:hover{background:#efeee2}
#sidebar .category-group[open]>summary{background:#eeeee2;border-bottom:1px solid #cbd0c0}
#sidebar .topic-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;background:var(--topic);color:var(--topic-ink);border-radius:8px}
#sidebar .topic-icon svg{display:block;width:25px;height:25px}
#sidebar .group-title{flex:1;min-width:0}
#sidebar .group-title small{font:11px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--muted);margin-top:5px}
#sidebar .group-chevron{color:#74856a;font-size:20px}
#sidebar .group-description,#sidebar .layer-note{color:var(--muted)}
#sidebar .group-tools button{background:#f4f4eb;color:#46613f;border-color:#bdc9b1}
#sidebar .category-section{border-color:#daddcf}
#sidebar .category-section>summary{color:#4e6049;background:#f5f4ec}
#sidebar .category-section>summary:hover{background:#eaeedf}
#sidebar .section-count{color:#606e56}
#sidebar .category-row{background:var(--sheet);border-color:#dfe1d3}
#sidebar .category-row.is-selected{background:#eff3e8;box-shadow:inset 3px 0 #859c74}
#sidebar .category-row.disabled{background:#f1f0e8}
#sidebar .category-label{gap:9px}
#sidebar .category-name{color:#334b38;font-size:13px;font-weight:550}
#sidebar .disabled .category-name{color:#626c5b}
#sidebar .state-only-tag{background:#e8e4ee;color:#62576f;border:1px solid #ccc3d5;border-radius:4px}
#sidebar .state-only-tag.mixed{background:#e4ebed;color:#526773;border-color:#bdcdd3}
#sidebar .scope-tag,#sidebar .evidence-tag{background:#e6ede2;color:#4c6547;border:1px solid #c4d0bd;border-radius:4px}
#sidebar .evidence-tag{background:#e4edf0;color:#4b6771;border-color:#c0d0d6}
#sidebar .review-tag,.review-tag{background:#efe5cc;color:#79612f;border:1px solid #d6c59b;border-radius:4px}
#sidebar .layer-actions button,#sidebar .layer-actions .solo{color:#3e6953}
#sidebar .layer-actions button:hover{background:#e4ecde}
#sidebar .coverage-entry{background:#e3ecee;color:#3f6370;border:1px solid #b7ccd0;border-radius:6px;box-shadow:none}
#sidebar .empty-layers{background:#faf8f0;border-color:#b7c4ac;color:#596b50}
#sidebar .sidebar-section .legend,#sidebar .sidebar-section .source-status,#sidebar .range-label,#sidebar .check-label,#sidebar .home-badge,#sidebar .home-badge>span:last-child{color:var(--muted)}
#sidebar .review-entry{background:#e4ecda;border-color:#b8c6ac;color:#405d3d}
#sidebar .review-entry[aria-pressed=true]{background:var(--green);color:var(--sheet)}
#sidebar #live-status:not(:empty){background:#f0e8d7;border-color:#d4c49c;color:#765f34}
#main{background:var(--paper)}
.topbar{background:#faf8f0;border-bottom:1px solid #c3c9b8;padding:13px 16px}
.view-tabs{background:#e1e7d9;border:1px solid #cbd2c1;border-radius:7px}
.view-tabs button{color:#566b4d;font-weight:600}
.view-tabs button[aria-pressed=true]{background:#fffdf7;color:#365a43;box-shadow:0 1px 4px #3c4b3720;border-radius:5px}
.search-field input{background:#fffdf7;padding:11px 12px}
.querybar{background:#eeeee2;border-color:#cdd2bf;padding:10px 16px}
#query-status{color:#45563e;font-size:11px;font-weight:550}
.request-time,.marker-help{color:#626d59;font-size:10px}
.severity-filter{color:#5b6b53;font-size:10px}
.severity-filter input,.severity-filter select{background:var(--sheet);border-color:#bec8b3;color:#435b3d;padding:6px;border-radius:5px}
#mercury-filter-note{color:#765b34}
footer{background:#f3f0e5;color:#636e59;border-color:#c9d0bd;font-size:10px}
.leaflet-control-attribution{color:#4c5946!important;background:#fffdf4ed!important}
.leaflet-control-attribution a{color:#356371}
.leaflet-bar{border:1px solid #99ad95!important;border-radius:6px!important;box-shadow:var(--shadow)!important}
.leaflet-bar a{color:#355641!important;background:#fffdf4!important}
.leaflet-bar a:hover{background:#e6edde!important}
.leaflet-bar a:focus-visible{outline-color:#355e71;outline-offset:2px}
.map-message,.map-legend{background:#fffdf6f5;color:#46563e;border:1px solid #bbc8ad;border-radius:7px;box-shadow:var(--shadow)}
.map-message.error{border-color:#c69f88;color:#885240}
.map-legend>strong{color:#344e34}
.map-legend small{color:#626d57;border-color:#d4dac7}
#records{background:var(--sheet);color:var(--ink)}
.table-note{background:#f5f3e9;color:#606d56;border-color:#d5dcc7;font-size:11px}
th{background:#e7eddd;color:#455d3e}
th button{color:#455d3e}
th,td{border-color:#dce1cf}
td:first-child{color:#34593e}
tr[data-record]:hover{background:#edf2e3}
th[aria-sort=ascending],th[aria-sort=descending]{background:#d9e4cb}
.empty-row{color:#647458}
.pagination{background:#f0f2e6;color:#53654a;border-color:#cdd7bf}
.queue-banner{background:#e6edde;color:#3f5b3b;border-color:#bacbad}
.detail{background:var(--sheet);border:1px solid #aebda2;border-radius:9px;box-shadow:0 10px 34px #34423029;color:var(--ink)}
.detail h2{font:400 28px/1.2 Georgia,serif;color:#304b35;letter-spacing:0}
.detail .tag{color:#607254;letter-spacing:.7px}
.detail .value-box{background:#edf1e4;color:#3c5639}
.detail .classification,.detail dt{color:#647456}
.detail dd{color:#3e5335}
.detail p,.detail details{color:#59684e}
.detail .alert-box{background:#f1e6d5;border-color:#a78753;color:#775b38}
.detail .source-link{background:#e3ecef;color:#355e6b;border-radius:5px}
.detail pre{background:#eff1e6;color:#43543a;border:1px solid #d5dec8;border-radius:5px}
.detail .delete-place{background:#f6ece3;border-color:#ceb4a0;color:#8c5740}
#edit-place{background:#e5eddc;border-color:#b6c7a6;color:#3e603b}
.close,.icon{color:#5c6b51}
.close:hover,.icon:hover{background:#e9eedf;color:#314d31}
dialog,#coverage-dialog{background:var(--sheet);color:var(--ink);border:1px solid #acbda0;border-radius:10px;box-shadow:0 18px 65px #303e3245}
dialog::backdrop,#coverage-dialog::backdrop{background:#35433670;backdrop-filter:blur(2px)}
.dialog-heading h2{font:400 28px/1.2 Georgia,serif;color:#314d35}
.error{color:#94563d}
.coverage-card{background:#fffdf7;border-color:#c6d2bb;border-radius:7px;color:#3f5336}
.coverage-card h3{font:400 21px/1.25 Georgia,serif;color:#35523a}
.coverage-card small,.coverage-scope,#coverage-result-count{color:#607154}
.coverage-states section{background:#eff2e7;border:1px solid #d5dec9;border-radius:5px}
.coverage-sources a{color:#356875}
#toast{background:#365b4c;color:#fffdf7;border:1px solid #50715d;border-radius:7px;box-shadow:var(--shadow)}
/* Softer marker chrome; the feature colors themselves remain unchanged. */
.atlas-point-dot{border-color:#fffef8;box-shadow:0 0 0 1px #40513e,0 2px 4px #33452b40}
.atlas-point-marker:hover .atlas-point-dot,.atlas-point-marker:focus .atlas-point-dot,.atlas-point-marker.is-selected .atlas-point-dot{box-shadow:0 0 0 2px #344d36,0 0 0 4px #f8f7eaaf}
.atlas-point-marker:focus-visible{outline-color:#355e71;background:#fffdf4b0}
.atlas-point-count{background:var(--sheet);color:#3d5740;border-color:#607554;box-shadow:0 0 0 2px #e5eddb;border-radius:7px}
.leaflet-tooltip.atlas-place-label{background:#fffdf4f5;color:#304a34;border:1px solid #a5b698;border-radius:5px;box-shadow:0 2px 6px #30412824;font-weight:550}
.leaflet-tooltip-right.atlas-place-label:before{border-right-color:#fffdf4}
.atlas-place-name:hover{background:#e7eedc;color:#2e5534}
.marker-record-choices button{background:#f3f4e9;color:#355132;border-color:#b5c4a6;border-left-color:var(--choice-color);border-radius:5px}
.marker-record-choices button:hover{background:#e6eddc;border-color:#91a780;border-left-color:var(--choice-color)}
.marker-record-choices span,.marker-record-choices small{color:#5a6c4e}
.atlas-marker-popup .leaflet-popup-content-wrapper{background:var(--sheet);color:var(--ink);border:1px solid #a9ba9a;border-radius:8px;box-shadow:0 5px 18px #3349292b}
.atlas-marker-popup .leaflet-popup-tip{background:var(--sheet)}
.atlas-marker-popup .leaflet-popup-close-button{color:#4d6443!important}
.atlas-marker-popup h3{font:400 21px/1.2 Georgia,serif;color:#334d37}
.atlas-marker-popup .popup-category{color:#4b6b48}
.atlas-marker-popup .popup-value{background:#eaf0e0;color:#405936}
.atlas-marker-popup .popup-value small{color:#586c4b}
.atlas-marker-popup .popup-provenance,.atlas-marker-popup .popup-basis{color:#5f6e54}
.atlas-marker-popup #marker-more-details{background:#e1ebee;color:#345c69;border:1px solid #abc4cc;border-radius:5px;font-weight:600}
.atlas-marker-popup #marker-more-details:hover{background:#d4e3e7}
.atlas-marker-popup .popup-back{color:#3e6a77}
/* The standalone coverage report uses the same paper and typography. */
body.coverage-report{background:var(--paper);font:15px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.coverage-report h1,.coverage-report h2{font-family:Georgia,serif;font-weight:400;color:#354d38}
.coverage-report h1{font-size:38px;line-height:1.15}
.coverage-report .eyebrow{color:#637355;letter-spacing:.12em}
.coverage-report .banner{background:#efe8d5;border-color:#cfc09a;color:#6f5c37;border-radius:6px}
.coverage-report .filters{background:#f4f0e6f5;z-index:2}
.coverage-report .counts div{background:var(--sheet);border-color:#c9d1bd;border-radius:7px}
.coverage-report .counts strong{font:32px Georgia,serif;color:#385237}
.coverage-report .counts span{color:#627255}
@media(min-width:1500px){#sidebar{width:390px;flex-basis:390px;padding:28px 24px 36px}}
@media(max-width:1000px) and (min-width:761px){#sidebar{width:330px;flex-basis:330px;padding:21px 17px}.topbar{padding:10px}.querybar{padding:9px 11px}}
@media(max-width:760px){#sidebar{width:min(380px,94vw);padding:21px 17px 32px;box-shadow:8px 0 30px #36482d26}#sidebar .brand-north{font-size:22px!important}#sidebar .brand-atlas{font-size:33px!important}#sidebar .brand-stamp{width:40px;height:40px;margin-right:12px}#sidebar #close-sidebar{color:#55694c;background:#eef0e3;border:1px solid #bdcbae;border-radius:6px;min-width:44px;min-height:44px}#sidebar .state-controls button,#sidebar .selection-tools button{min-height:44px}.topbar{padding:9px;gap:7px}.topbar button{min-height:36px}.querybar{padding:8px 10px}.marker-help{font-size:10px}.detail{padding:21px}.detail h2{font-size:25px}.detail dl{grid-template-columns:90px 1fr}.dialog-heading h2{font-size:24px}footer{font-size:9px;padding:7px 10px}.coverage-report h1{font-size:31px}}

/* Keep keyboard focus visible inside rounded, clipped category cards. */
#sidebar .category-group>summary:focus-visible,#sidebar .category-section>summary:focus-visible{outline-offset:-4px}
