@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f5ef;--ink:#20382e;--muted:#708076;--line:#dce2d9;--dark:#173c2b;--green:#1c754b;--red:#c64c46;--orange:#bc771c;--lime:#78a942;--yellow:#b99517}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px 'DM Sans',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;min-height:44px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:10px 16px;font-weight:600}button:hover{background:#edf2e9}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #dbb75e;outline-offset:3px}a{color:var(--green)}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--dark);color:#e7ecdf;padding:34px 22px;display:flex;flex-direction:column}.brand{color:white;font:bold 34px 'Manrope',Arial;text-decoration:none;letter-spacing:-1.5px}.brand>span:first-child{color:#c5da93}.brand-dot{color:#c5da93}.brand small{display:block;font:10px 'DM Sans',Arial;letter-spacing:2.1px;margin-top:8px;color:#bbcab8}.nav-label{font-size:10px;letter-spacing:2px;color:#8fa88f;margin:54px 12px 14px}.sidebar nav{display:grid;gap:7px}.nav-button{display:flex;align-items:center;gap:13px;background:transparent;border:0;color:#aebfaf;text-align:left;font-weight:500}.nav-button.active{background:#31533d;color:white}.nav-button:hover{background:#294934}.nav-symbol{width:22px;font-size:20px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid #426147;padding-top:24px;font-size:13px}.sidebar-bottom small{display:block;margin:10px 0;color:#9daf9b}.sidebar-bottom p{display:flex;justify-content:space-between;color:#b9c8af}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#cee59e;margin-right:7px}main{margin-left:238px;padding:36px 42px 10px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7d8a76}h1,h2,h3{font-family:'Manrope',Arial,sans-serif;margin:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.4;margin-top:7px}h2{font-size:23px;letter-spacing:-.6px}h3{font-size:17px}.header-tools{display:flex;align-items:center;gap:14px}.preview-badge{font-size:10px;letter-spacing:1.1px;padding:8px 11px;border:1px solid #cbd8bd;border-radius:5px;white-space:nowrap}.notice{padding:15px 0 20px;font-size:13px;color:#677565;border-bottom:1px solid var(--line);line-height:1.7}.notice b{color:#344e3b}.notice span{display:block;font-size:11px;color:#7b8377}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:28px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;min-height:128px;position:relative}.stat .num{font-size:34px;font-weight:700;letter-spacing:-1px}.stat .label{font-size:13px;color:var(--muted);margin-top:5px}.stat small{font-size:11px;display:block;margin-top:8px;color:#879080}.stat:first-child{background:#e7eddb;border-color:#d4dfc3}.stat-symbol{position:absolute;right:20px;top:22px;color:#8eab67}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:27px 0 18px}.section-title p{font-size:13px;color:var(--muted);margin:7px 0 0}.primary{background:var(--dark);border-color:var(--dark);color:white}.primary:hover{background:#315640}.subgrid{display:grid;grid-template-columns:1.65fr 1fr;gap:20px}.box{border:1px solid var(--line);background:#fff;border-radius:14px;padding:24px}.box h3{margin-bottom:20px}.priority{display:flex;gap:15px;padding:16px 0;border-bottom:1px solid #eef0e9}.priority:last-child{border:0}.step-no{background:#eef2e7;font-size:13px;display:flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;flex-shrink:0}.priority p{font-size:13px;color:var(--muted);line-height:1.65;margin:7px 0 0}.district{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid #eef0e9}.district:last-child{border:0}.district small{display:block;font-size:12px;margin-top:5px;color:var(--muted)}.district b{font-size:22px;font-weight:600}.filters{display:flex;flex-wrap:wrap;gap:10px;padding:15px 0;margin:10px 0}.filters select,.filters input{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 13px;min-height:44px;min-width:130px;color:var(--ink)}.filters input{min-width:210px;flex:1}.inline{display:flex;align-items:center;gap:8px;font-size:13px}.inline input{min-width:0;min-height:22px;width:19px}.view-toggle{display:flex;gap:5px}.view-toggle .on{background:#e1ead8}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.candidate{background:white;border:1px solid var(--line);border-radius:13px;padding:21px;position:relative}.candidate-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.candidate h3{line-height:1.5;max-width:85%}.candidate .place{color:var(--muted);font-size:12px;margin:6px 0 13px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:5px;font-size:11px;font-weight:700;line-height:1.5}.pill.red{background:#fae9e5;color:#a33229}.pill.orange{background:#fbefd9;color:#985d0d}.pill.green{background:#e0f1e7;color:#166438}.pill.lime{background:#eaf2d8;color:#527622}.pill.yellow{background:#faf1cd;color:#8b700e}.example{display:inline-block;background:#ebdef4;color:#72418b;font-size:10px;padding:3px 6px;margin-left:6px}.reason{font-size:13px;color:#647263;line-height:1.65;min-height:43px;margin:14px 0}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid #eef0e9;padding-top:16px}.mini-grid span{font-size:11px;color:#81907b;display:block;margin-bottom:5px}.mini-grid strong{font-size:14px;font-weight:500}.card-actions{display:flex;justify-content:space-between;gap:8px;margin-top:20px}.card-actions button{font-size:13px}.save-btn{border:0;background:#f0f3ea}.empty{padding:45px;text-align:center;border:1px dashed #c6d1bd;border-radius:14px;color:var(--muted)}.map-box{height:560px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#e2e9dd;position:relative}#map{height:100%;width:100%}.map-info{position:absolute;left:14px;top:14px;z-index:2;max-width:80%;font-size:12px;background:white;padding:11px;border-radius:8px;box-shadow:0 2px 10px #0001}.map-marker{border:2px solid #fff;border-radius:50%;width:32px;height:32px;min-height:32px;padding:0;color:white;box-shadow:0 2px 5px #0003;font-size:13px}.layer-tools{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0;font-size:13px}.legend{display:flex;gap:15px;flex-wrap:wrap;margin:20px 0;color:#74806d;font-size:12px}.legend b{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#edf1e7;font-size:11px;letter-spacing:.3px;color:#60725c;padding:14px}td{padding:15px 14px;border-top:1px solid #ecf0e6;vertical-align:top;line-height:1.6}td a{overflow-wrap:anywhere}.source-status{font-size:11px;display:block;color:var(--muted)}.muted{color:var(--muted);font-size:13px;line-height:1.7}.section-copy{max-width:760px;line-height:1.7;color:#687561;font-size:14px}.source-link{word-break:break-word;font-size:12px}.selection-row{padding:18px;background:white;border:1px solid var(--line);border-radius:10px;margin:10px 0}.measurement{padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}footer{margin-top:38px;padding:20px 0;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#88907e;border-top:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:16px;width:min(700px,94vw);max-height:90dvh;overflow:auto;padding:27px;color:var(--ink)}dialog::backdrop{background:#15291fc0;backdrop-filter:blur(3px)}dialog h2{font-size:22px}.modal-top{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px}.close{border:0;font-size:25px;padding:0;min-width:44px}.detail-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:25px 0}.detail-field{border-bottom:1px solid var(--line);padding-bottom:15px;overflow-wrap:anywhere}.detail-field small{display:block;color:var(--muted);font-size:11px;line-height:1.6}.detail-field .field-value{margin:7px 0;font-size:15px}.detail-field>a{display:block;font-size:11px}.field-note{font-size:12px;color:#7d856e;line-height:1.6;margin-top:8px}label{display:grid;gap:7px;margin:14px 0;font-size:13px}label input,label select,textarea{padding:12px;border:1px solid var(--line);border-radius:8px;min-height:44px;background:white;color:var(--ink);width:100%}textarea{resize:vertical;min-height:80px}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.chip-row{display:flex;flex-wrap:wrap;gap:8px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:14px 25px;background:#203c2d;color:white;border-radius:12px;z-index:100;display:none;box-shadow:0 4px 20px #0003;max-width:90vw}#mobile-nav{display:none}.small-link{background:transparent;border:0;color:var(--green);font-size:13px;padding-left:0}.compare-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.compare-item{background:white;border:1px solid var(--line);border-radius:12px;padding:15px;font-size:13px;line-height:1.8}
@media(max-width:1150px){main{padding:28px}.sidebar{width:205px;padding:28px 16px}main{margin-left:205px}h1{font-size:27px}.header-tools{gap:7px}.preview-badge{display:none}.subgrid{grid-template-columns:1fr}.stat{padding:18px}.cards{grid-template-columns:1fr}}
@media(max-width:700px){body{font-size:16px}.sidebar{display:none}main{margin-left:0;padding:22px 18px 90px}header{margin-bottom:14px;align-items:flex-start}h1{font-size:25px;line-height:1.3;max-width:240px}.eyebrow{font-size:8px;letter-spacing:1.5px}.header-tools button{font-size:0;padding:8px 12px;min-width:44px}.header-tools button:first-letter{font-size:20px}.notice{font-size:12px;line-height:1.7;padding:10px 0 17px}.notice span{font-size:10px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.stat{padding:18px;min-height:118px}.stat .num{font-size:30px}.stat .label{font-size:12px}.stat-symbol{right:14px;top:18px}.section-title{align-items:flex-start}h2{font-size:20px}.section-title button{font-size:12px;padding:10px}.box{padding:19px}.cards{grid-template-columns:1fr}.candidate{padding:18px}.filters{gap:8px}.filters select{min-width:0;flex:1;max-width:100%;font-size:14px}.filters input{width:100%;min-width:0;font-size:16px}.mini-grid strong{font-size:15px}.map-box{height:62dvh;min-height:360px}.detail-fields{grid-template-columns:1fr}.edit-grid{grid-template-columns:1fr}dialog{padding:22px;max-height:91dvh}.card-actions{flex-wrap:wrap}.card-actions button{flex:1}.compare-grid{grid-template-columns:1fr}footer{display:block;font-size:10px;line-height:1.8}footer>span{display:block}.table-wrap{font-size:12px}#mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:10;padding:7px 4px max(8px,env(safe-area-inset-bottom));justify-content:space-around}#mobile-nav .nav-button{display:flex;flex-direction:column;gap:4px;font-size:9px;color:#72816b;padding:4px 3px;min-width:58px;border-radius:9px;min-height:50px}#mobile-nav .nav-button.active{background:#e7eedf;color:#1c4e32}#mobile-nav .nav-symbol{font-size:20px}#toast{bottom:87px;font-size:13px}.layer-tools{gap:10px}input,select,textarea{font-size:16px!important}}

/* Mobile requirements: readable text and 44px touch areas. */
.map-marker{width:44px;height:44px;min-width:44px;min-height:44px;font-size:16px}
.maplibregl-ctrl-group button{width:44px;height:44px;min-height:44px;padding:0}
.inline{min-height:44px;cursor:pointer}.maplibregl-popup-content{font-size:16px}
@media(max-width:700px){
 .eyebrow{font-size:16px;letter-spacing:.3px}.notice,.notice span,.stat .label,.stat small,.section-title p,.priority p,.district small,.inline,.candidate .place,.pill,.example,.reason,.mini-grid span,.mini-grid strong,.card-actions button,.map-info,.legend,.muted,.section-copy,.source-link,.source-status,.measurement,footer,.section-title button,table,th,td,#toast{font-size:16px}
 #mobile-nav .nav-button{font-size:16px;min-width:60px;padding:5px 2px}.filters{display:grid;grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}.filters select{width:100%;min-width:0}.view-toggle{grid-column:1/-1}.filters .inline{grid-column:1/-1}.map-info{max-width:72%;font-size:16px}.map-box{min-height:450px}.section-title{flex-wrap:wrap}.section-title button{flex-shrink:0}.stat{min-height:160px}.candidate h3{max-width:80%}
}

.discovery-export{display:inline-block;padding:12px;border:1px solid var(--line);border-radius:10px;background:white}.candidate p{overflow-wrap:anywhere}#d-content .table-wrap{max-width:100%}#d-content pre{max-width:100%}@media(max-width:700px){#mobile-nav{overflow-x:auto;justify-content:flex-start}#mobile-nav .nav-button{min-width:66px;flex-shrink:0;font-size:16px}#discovery-stats .num{font-size:26px}.discovery-export{font-size:16px}.filters select{min-width:0}}

#d-color{order:1}#d-province{order:2}#d-district{order:3}#d-query{order:4}#d-category{order:5}#d-sort{order:6}

/* Final accessibility rules: source-audited 16px copy and 44px controls. */
html{font-size:16px}
.brand small,.nav-label,.sidebar-bottom,.sidebar-bottom small,.eyebrow,.preview-badge,
.notice,.notice span,.stat .label,.stat small,.section-title p,.step-no,.priority p,
.district small,.inline,.candidate .place,.pill,.example,.reason,.mini-grid span,
.mini-grid strong,.card-actions button,.map-info,.layer-tools,.legend,table,th,
.source-status,.muted,.section-copy,.source-link,.measurement,footer,
.detail-field small,.detail-field .field-value,.detail-field>a,.field-note,label,
.small-link,.compare-item,small{font-size:16px}
button,input,select,textarea{min-height:44px;min-width:44px;font-size:16px}
.inline input{width:44px;height:44px;min-height:44px;min-width:44px;flex-shrink:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #dbb75e;outline-offset:3px}
main,header>div,.section-title>div,.subgrid>*,.stats>*,.cards>*,.mini-grid>*,
.detail-fields>*,.edit-grid>*,.compare-grid>*,.priority>div,.district>div,
.candidate-top>*,#content,#d-content,.box{min-width:0}
main,dialog{overflow-wrap:anywhere}
input,select,textarea{max-width:100%}
.table-wrap{max-width:100%;overscroll-behavior-x:contain}
pre{white-space:pre-wrap;overflow-wrap:anywhere}
.chip-row>a,.discovery-export{display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
.maplibregl-popup-close-button{min-width:44px;min-height:44px;font-size:20px}
@media(max-width:700px){
 header{flex-wrap:wrap}header>div{max-width:100%}.header-tools{flex-wrap:wrap}
 .header-tools button{font-size:16px;min-height:44px;min-width:44px}
 .header-tools button:first-letter{font-size:inherit}
 .detail-field small,.detail-field .field-value,.detail-field>a,.field-note,label,
 .small-link,.compare-item,.sidebar-bottom small,.brand small,.nav-label,small,
 .section-title button,.filters select,.filters input,.inline,footer,td{font-size:16px}
 .candidate-top{flex-wrap:wrap}.candidate h3{max-width:100%;flex:1 1 160px}
 .candidate-top .pill{max-width:100%}.mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .card-actions button{min-width:44px;max-width:100%;overflow-wrap:anywhere}
 .priority{gap:10px}.step-no{width:32px;height:32px}
 .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .filters>*{min-width:0;max-width:100%}.filters .inline input{min-width:44px}
 .view-toggle,.chip-row,.layer-tools{flex-wrap:wrap}
 #d-hours{width:100%;max-width:100%;min-height:44px;font-size:16px}
 .empty{padding:28px 16px}.box{max-width:100%}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stat{padding:16px}.stat .num{overflow-wrap:anywhere}
 .map-info{max-width:calc(100% - 72px);overflow-wrap:anywhere}
 dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}
 #mobile-nav{max-width:100vw;overscroll-behavior-x:contain}
 #mobile-nav .nav-button{min-width:66px;min-height:50px;font-size:16px}
}
/* Map library copy follows the same minimum reading size. */
.maplibregl-ctrl-attrib,.maplibregl-ctrl-attrib a,.maplibregl-ctrl-attrib-inner,
.maplibregl-popup-content,.maplibregl-popup-content small{font-size:16px}
.maplibregl-ctrl-attrib-button{min-width:44px;min-height:44px}
.discovery-search-row{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;align-items:stretch}.discovery-search-row input{flex:1 1 260px;min-width:0}.discovery-search-row button{font-size:16px;min-height:44px}.discovery-search-row #d-search{min-width:100px}@media(max-width:700px){.discovery-search-row input{flex-basis:100%}.discovery-search-row button{flex:1}}

/* Contact channels */
.contact-channels{font-size:16px;overflow-wrap:anywhere;margin:12px 0}.contact-channel{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:44px}.contact-channel a{display:inline-flex;align-items:center;min-height:44px;padding:4px}.contact-source{font-size:16px;color:#596860}
.contact-source a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}