/* Clear geographic browsing, with independent map selections. */
#sidebar{width:360px;flex-basis:360px;padding:24px 20px 32px;background:#f8f8f2;scrollbar-gutter:stable}
#sidebar .brand{font-size:29px}#sidebar .intro{font-size:13px;line-height:1.4;margin:8px 0 12px;color:#677466}
#sidebar .home-badge{border:0;padding:0 0 14px;font-size:11px;gap:7px}
#sidebar .home-badge>span:last-child{margin-left:0;font-size:11px}
#sidebar #audit-build-status{padding:9px 11px;background:#f0ead9;border-radius:7px;font-size:11px;line-height:1.45;margin:0 0 12px}
#sidebar .sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
#sidebar .sidebar-heading h2{margin:0;font-size:14px;font-weight:650;letter-spacing:0}
#sidebar .sidebar-heading>span{font-size:11px;color:#72816d}
#sidebar .state-section{border-top:1px solid var(--line);padding-top:16px}
#sidebar .state-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0 6px}
#sidebar .state-controls button{min-height:40px;font-size:12px;letter-spacing:0;font-weight:550}
#sidebar .state-controls button[aria-pressed=true]{background:#e1ecdf;color:#214f3a;border-color:#8eaf91}
#sidebar .state-controls button[aria-pressed=true]::before{content:'✓';margin-right:7px;font-weight:700}
#sidebar .help{font-size:11px;line-height:1.5;margin:6px 0;color:#6b7666}
#sidebar .field>span{font-size:12px;letter-spacing:0;color:#475f48}
#sidebar .field input,#sidebar .field select{font-size:13px;min-height:42px;background:#fffefa}
#sidebar .layer-search{margin:18px 0 8px}
#sidebar .sidebar-fold>summary{font-size:13px;font-weight:600;cursor:pointer;min-height:44px;padding:12px 0;color:#496049}
#sidebar .preset-section{margin:0 0 14px;border-bottom:1px solid var(--line);padding-bottom:2px}
#sidebar .preset-buttons{margin:0 0 8px;gap:6px}
#sidebar .preset-buttons button{font-size:12px;min-height:44px;padding:10px}
#sidebar .browse-switch{display:flex;padding:3px;background:#e9eee3;border-radius:9px;margin-top:10px;gap:3px}
#sidebar .browse-switch button{flex:1;border:0;background:transparent;color:#65735d;font-size:12px;min-height:38px;padding:8px 6px}
#sidebar .browse-switch button[aria-pressed=true]{background:#fffefa;color:#204d3e;box-shadow:0 1px 4px #244b3420;font-weight:600}
#sidebar #browse-help{font-size:11px;margin:8px 0}
#sidebar .selection-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:10px 0 12px}
#sidebar .selection-tools button{font-size:11px;min-height:38px;padding:8px}
#sidebar #selected-layers-only{border-radius:18px;background:#f1f4ec;color:#365540}
#sidebar #selected-layers-only[aria-pressed=true]{background:#204d3e;color:#fff;border-color:#204d3e}
#sidebar #selected-layer-count{display:inline-block;min-width:19px;margin-left:5px;font-weight:700}
#sidebar #hide-all{border-color:transparent;background:transparent;color:#677664}
#sidebar #hide-all:disabled{opacity:.45}
#sidebar .category-group{border:1px solid #d9e0d3;background:#fffef9;border-radius:10px;padding:0;margin:8px 0;overflow:hidden}
#sidebar .category-group>summary{display:flex;align-items:center;gap:10px;justify-content:space-between;font:600 14px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:14px;min-height:68px;color:#314e39;list-style:none}
#sidebar summary::-webkit-details-marker{display:none}
#sidebar .group-title small{display:block;font:400 11px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#78856f;margin-top:4px}
#sidebar .group-chevron{font-size:21px;color:#839178;transition:transform .15s}
#sidebar .category-group[open]>.group-chevron,#sidebar .category-group[open]>summary>.group-chevron{transform:rotate(180deg)}
#sidebar .category-group[open]>summary{background:#f0f4e9}
#sidebar .group-description{margin:12px 14px 8px;font-size:12px;line-height:1.5;color:#697761}
#sidebar .group-tools{gap:8px;margin:6px 14px 12px}
#sidebar .group-tools button{font-size:11px;padding:7px 10px;min-height:36px}
#sidebar .category-section{margin:0;border-top:1px solid #e4e8df}
#sidebar .category-section>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;line-height:1.4;text-transform:none;letter-spacing:0;color:#52634b;padding:13px 14px;min-height:44px;list-style:none}
#sidebar .category-section>summary::before{content:'›';font-size:18px;font-weight:400;flex:none}
#sidebar .category-section[open]>summary::before{transform:rotate(90deg)}
#sidebar .category-section>summary>span:first-child{flex:1}
#sidebar .section-count{font-size:11px;font-weight:400;color:#7d8975}
#sidebar .category-row{display:block;margin:0;padding:12px 14px;border-top:1px solid #e8ebdf;background:#fffef9}
#sidebar .category-row.is-selected{background:#f2f7ed}
#sidebar .category-row.disabled{opacity:1;background:#f5f5ef}
#sidebar .category-label{padding:0;display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.45;min-height:32px}
#sidebar .category-label input{width:18px;height:18px;margin-top:1px;flex:0 0 18px}
#sidebar .category-label .dot{width:7px;height:7px;margin-top:7px;flex:0 0 7px}
#sidebar .category-name{font-weight:550;color:#304b37;overflow-wrap:anywhere}
#sidebar .disabled .category-name{color:#7d8577}
#sidebar .layer-meta{display:flex;gap:5px;flex-wrap:wrap;margin:1px 0 7px 27px}
#sidebar .scope-tag,#sidebar .evidence-tag,#sidebar .review-tag{font-size:10px;line-height:1.35;padding:3px 6px;background:#e9eee1;color:#5a6c4e;border-radius:4px}
#sidebar .evidence-tag{background:#e9edf0;color:#5a6b79}
#sidebar .review-tag{background:#f5eddc;color:#866337}
#sidebar .layer-note{font-size:11px;line-height:1.5;margin:0 0 5px 27px;color:#728068}
#sidebar .layer-actions{display:flex;justify-content:space-between;flex-wrap:wrap;margin-left:20px;gap:2px}
#sidebar .layer-actions button,#sidebar .layer-actions .solo{font-size:11px;padding:8px 6px;border-color:transparent;background:transparent;color:#426a4c;min-height:34px}
#sidebar .layer-actions button:hover{background:#e5eddf}
#sidebar .empty-layers{padding:18px 14px;border:1px dashed #cfdac5;border-radius:9px;font-size:13px;line-height:1.5;color:#5f7255}
#sidebar .empty-layers p{font-size:12px;margin-bottom:0}
#sidebar .coverage-entry{margin:14px 0 8px;min-height:44px;display:flex;justify-content:space-between;align-items:center;width:100%;padding:11px 14px;font-size:12px;background:#eaf0e3;color:#37573d;border:1px solid #d0ddc5}
#sidebar .sidebar-section{margin-top:8px;padding-top:0;font-size:12px;line-height:1.55}
#sidebar .sidebar-section>summary{padding:13px 0;font-size:13px;min-height:44px}
#sidebar .sidebar-section .toolbar button{font-size:12px;min-height:40px}
#sidebar .sidebar-section .check-label,#sidebar .sidebar-section .range-label{font-size:12px;line-height:1.5}
#sidebar .sidebar-section .check-label input{width:18px;height:18px;flex:0 0 18px}
#sidebar .review-entry{font-size:12px;min-height:44px}
#sidebar .sidebar-section .legend,#sidebar .sidebar-section .source-status{font-size:11px}
@media(min-width:1500px){#sidebar{width:380px;flex-basis:380px;padding:26px 24px 36px}}
@media(max-width:1000px) and (min-width:761px){#sidebar{width:330px;flex-basis:330px;padding:20px 16px}}
@media(max-width:760px){#sidebar{width:min(380px,94vw);padding:20px 16px 32px}#sidebar .state-controls button{min-height:44px}#sidebar .selection-tools button,#sidebar .browse-switch button{min-height:44px}#sidebar .layer-actions button,#sidebar .layer-actions .solo{min-height:44px}#sidebar .category-label{min-height:44px}#sidebar .group-tools button{min-height:44px}#sidebar #close-sidebar{min-width:44px;min-height:44px}#sidebar .brand{font-size:27px}}

#sidebar .state-section{padding-top:12px;border-top:0}#sidebar #audit-build-status{margin-top:10px;margin-bottom:0}#sidebar .layer-search{margin-top:12px}#sidebar .layer-search>.sr-only{margin:0;padding:0}#sidebar .preset-section{margin-bottom:12px}

#sidebar #live-status:empty{display:none}#sidebar #live-status:not(:empty){padding:10px 12px;background:#f4eedf;border:1px solid #ded2b8;border-radius:8px;font-size:11px;line-height:1.55;margin:0 0 12px}

/* Topics organize browsing; tone and statewide scope belong to individual layers. */
#sidebar .tone-legend{display:flex;align-items:center;gap:15px;margin:10px 0 12px;font-size:11px;color:#6b7865}
#sidebar .tone-legend>span{display:flex;align-items:center;gap:5px}
#sidebar .tone-icon{width:19px;height:19px;flex:0 0 19px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-style:normal;font-size:15px;font-weight:650;line-height:1;border:1px solid transparent}
#sidebar .tone-icon.positive{background:#e4efdf;color:#35633d;border-color:#bbd3b1}
#sidebar .tone-icon.negative{background:#f6e6d3;color:#875120;border-color:#ddbf96}
#sidebar .tone-icon.neutral{background:#e8edf0;color:#546d7a;border-color:#c5d2d9;font-family:Georgia,serif;font-size:13px}
#sidebar .category-label .tone-icon{margin-top:1px}
#sidebar .category-title{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;flex:1;min-width:0}
#sidebar .category-title .category-name{flex:auto}
#sidebar .state-only-tag{display:inline-flex;align-items:center;gap:4px;font-size:10px;line-height:1.35;font-weight:500;padding:3px 6px;border-radius:5px;background:#eeebf7;color:#645881;white-space:nowrap}
#sidebar .state-only-tag svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.3}
#sidebar .state-only-tag.mixed{background:#ecedf1;color:#66717d}
#sidebar .layer-meta,#sidebar .layer-note{margin-left:28px}
#sidebar .tone-legend .tone-icon{width:17px;height:17px;flex-basis:17px;font-size:13px}
