/* Restyles the two full pages (rules matrix and map) to concept C2. Loaded after their own <style>. */
:root,:root:not([data-theme="light"]),:root[data-theme="dark"]{
  --bg:#f6f1e6;--surface:#fbf7ee;--ink:#2a2823;--muted:#5d584c;--line:#d9cdb2;--accent:#8a6a1f;--accent-bg:#ece3cf;
  --ok:#2f5d50;--ok-bg:#e1ece6;--perm:#8a6a1f;--perm-bg:#f3e6c0;--stop:#9b2c2c;--stop-bg:#f4dcd8;--unk:#4a463d;--unk-bg:#ece3cf;--na:#5d584c;--na-bg:#ece3cf;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#f6f1e6;--surface:#fbf7ee;--ink:#2a2823;--muted:#5d584c;--line:#d9cdb2;--accent:#8a6a1f;--accent-bg:#ece3cf;
  --ok:#2f5d50;--ok-bg:#e1ece6;--perm:#8a6a1f;--perm-bg:#f3e6c0;--stop:#9b2c2c;--stop-bg:#f4dcd8;--unk:#4a463d;--unk-bg:#ece3cf;--na:#5d584c;--na-bg:#ece3cf;}}
html{color-scheme:light}
body{background:var(--bg);color:var(--ink);font-family:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px}
.wrap{max-width:1140px}
h1,h2,h3,.card h3,details>summary{font-family:"Fraunces",Georgia,serif}
h1{font-weight:700;letter-spacing:0}
h2{font-weight:600}
a{color:#2f5d50}
.lede{font-family:"Source Sans 3",system-ui,sans-serif;font-size:19px;color:#4a463d}
.sans,.callout,.layers,.chip,.key,table,.matrix,.card,.leaflet-popup-content{font-family:"Source Sans 3",system-ui,sans-serif}
.callout{background:#fbf7ee;border:1px solid #d9cdb2;border-left:4px solid #a8741a;border-radius:4px}
.chip{border-radius:2px;letter-spacing:.08em}
.matrix{border-radius:4px;border:1px solid #2a2823;border-top-width:3px;background:#fbf7ee}
.matrix .h{background:#ece3cf;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.matrix .q,.matrix .h{background:#ece3cf}
.state{background:#fbf7ee;border:1px solid #d9cdb2;border-top:3px solid #2a2823;border-radius:4px}
details>summary{font-weight:600}
.card{background:#fbf7ee;border:1px solid #d9cdb2;border-radius:4px}
.card h3{font-family:"Fraunces",Georgia,serif}
table{background:#fbf7ee;border:1px solid #d9cdb2}
th{background:#ece3cf}
#map{border:1px solid #2a2823;border-radius:4px;box-shadow:6px 6px 0 #d9cdb2}
.layers input{accent-color:#2f5d50}
.vbtn{border-radius:4px;border:1px solid #2a2823;background:#fbf7ee;font-family:"Source Sans 3",system-ui,sans-serif}
.vbtn:hover{background:#2a2823;color:#fbf7ee}
.pinlabel{font-family:"Source Sans 3",system-ui,sans-serif}
.toggle{display:none}
.matrix{grid-template-columns:132px repeat(6,minmax(0,1fr))}
.matrix>div{overflow-wrap:break-word}
.chip{white-space:normal}
@media (max-width:860px){.matrix{display:block}}
