:root{--ink:#1b3439;--muted:#637b81;--deep:#102d36;--line:#dbe5e7;--sea:#bad9e4}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#edf5f6}a{color:#08705e}button,select{font:inherit}button{cursor:pointer}.app{height:100dvh;display:flex;flex-direction:column}.topbar{height:57px;display:flex;align-items:center;gap:15px;padding:0 22px;background:var(--deep);color:white;flex:none;z-index:1200}.logo{display:flex;gap:8px;align-items:center;color:white;text-decoration:none;font-size:17px;font-weight:800}.logo img{width:27px}.topbar .sep{height:22px;border-left:1px solid #ffffff55}.topbar nav{margin-left:auto}.topbar nav a,.product-title{color:#d5e8e5;font-size:12px;font-weight:720;text-decoration:none}.shell{display:flex;flex:1;min-height:0}.panel{width:350px;flex:none;background:white;border-right:1px solid var(--line);overflow:auto;padding:23px 22px;z-index:700}.eyebrow{font-weight:800;letter-spacing:.12em;color:#38896d;font-size:10px;margin:0 0 12px;text-transform:uppercase}.panel h1{font-size:31px;line-height:1.08;letter-spacing:-.05em;margin:0 0 9px}.intro{font-size:13px;color:var(--muted);margin:0 0 17px}.control-label{display:block;font-size:11px;font-weight:780;text-transform:uppercase;color:#61787d;margin:14px 0 7px}.search-row{display:flex;gap:8px}.search-row select{border:1px solid #c8d9dc;border-radius:10px;padding:10px;background:#f8fafa;color:#274247;width:100%;min-width:0}.search-row button{background:#e5f1ee;border:0;color:#1c705c;font-weight:700;border-radius:10px;padding:0 11px}.selection{padding:16px;background:#f5faf8;border:1px solid #dae9e4;border-radius:13px;margin:19px 0}.selection h2{margin:0;font-size:23px;letter-spacing:-.04em}.selection .hint{color:#6e8483;font-size:11px;margin:3px 0 10px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metric{background:#fff;border:1px solid #e2eae9;border-radius:10px;padding:11px}.metric-label{font-size:10px;color:#667e81;font-weight:800;text-transform:uppercase}.metric strong{display:block;font-size:23px;letter-spacing:-.045em;margin:3px 0}.metric small{font-size:10px;color:#6c8281}.balance{font-size:12px;margin:13px 0 0;border-top:1px solid #dce7e4;padding-top:11px}.group-title{font-weight:800;font-size:14px;margin:18px 0 9px}.pill-row{display:flex;flex-wrap:wrap;gap:6px}.fuel-btn{border:1px solid #d2e0e1;border-radius:99px;background:white;font-size:11px;padding:6px 9px;color:#4e676b;font-weight:780}.fuel-btn[aria-pressed=true]{background:#173d43;color:white;border-color:#173d43}.explainer{font-size:11px;color:#657b81;line-height:1.6}.legend{display:flex;flex-wrap:wrap;gap:9px 12px}.legend span{display:flex;align-items:center;gap:5px;font-size:11px}.legend i{width:10px;height:10px;display:inline-block;border-radius:50%}.disclosure{border-top:1px solid var(--line);margin-top:17px;padding:13px 0}.disclosure summary{cursor:pointer;font-weight:780;font-size:12px}.disclosure p,.disclosure li{font-size:11px;color:#587178;line-height:1.65}.map-wrap{flex:1;position:relative;min-width:0;background:var(--sea)}#map{position:absolute;inset:0;background:var(--sea)}.leaflet-container{background:var(--sea)!important}.map-banner,.map-key,.status{position:absolute;z-index:550;background:#fffffff0;border:1px solid #d9e5e7;border-radius:11px;padding:10px 13px;box-shadow:0 5px 16px #173b4920}.map-banner{top:17px;left:17px;max-width:345px}.map-banner strong{display:block;font-size:12px}.map-banner span,.map-key,.status{font-size:10px;color:#58737b}.map-key{bottom:16px;left:17px;max-width:360px}.status{bottom:16px;right:16px}.country-tooltip,.site-tooltip{padding:10px!important;border-radius:10px!important;border:1px solid #c9dbdf!important;box-shadow:0 8px 20px #20415030!important;white-space:normal!important;max-width:260px}.leaflet-tooltip::before{display:none}@media(max-width:750px){.panel{width:300px;padding:15px}.panel h1{font-size:25px}}@media(max-width:620px){.shell{flex-direction:column-reverse}.panel{width:100%;height:34dvh;min-height:220px;flex:none;padding:15px}.map-wrap{min-height:49dvh}.metric strong{font-size:18px}.selection{padding:10px;margin:11px 0}.topbar{padding:0 12px}.map-banner{left:9px;top:9px}.map-key{left:9px;bottom:9px}.status{right:9px;bottom:9px;max-width:160px}}
/* ChaseDesk Energy Atlas: high-clarity geographic UI refresh. */
:root{--sea:#b7d4df}
body{background:#f3f6f4}
.map-wrap,#map,.leaflet-container{background:#b7d4df!important}
.panel{width:345px;box-shadow:5px 0 20px rgba(24,61,64,.045)}
.panel h1{font-size:30px;line-height:1.11}
.selection{background:linear-gradient(150deg,#f4f9f6,#eef6f4);border:1px solid #d3e3dd;box-shadow:0 3px 14px rgba(25,80,69,.055)}
.metric{box-shadow:0 1px 2px #173b3410}.metric strong{color:#163f43}
.map-banner{background:#ffffffed;border-color:#f1f4f4;box-shadow:0 3px 16px #1e495022;border-radius:11px}
.map-key{font-size:11px;background:#fffffff1;padding:12px 15px;max-width:360px;line-height:1.6}
.energy-map-key{display:flex;gap:8px;align-items:center;margin-top:5px}
.balance-gradient{height:7px;width:144px;border-radius:99px;background:linear-gradient(90deg,#e6c5ac 0%,#f1dfc9 33%,#e7ebdb 50%,#c3e1d5 70%,#a6d7c7 100%);border:1px solid #708d8030}
.energy-key-scale{display:flex;justify-content:space-between;font-size:9px;color:#667b80;max-width:245px}
.energy-cursor-card{position:absolute;z-index:950;pointer-events:none;background:#fff;color:#15353e;border:1px solid rgba(58,96,105,.13);border-radius:12px;padding:13px 15px 12px;box-shadow:0 10px 35px rgba(18,54,61,.2);font:13px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;width:250px;max-width:calc(100% - 18px);text-align:left}
.energy-cursor-card[hidden]{display:none}
.hover-top{display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:15px}
.hover-category{font-size:9px;font-weight:850;letter-spacing:.085em;color:#69818a;display:flex;align-items:center;gap:6px}
.hover-category i{width:8px;height:8px;display:inline-block;border-radius:50%}
.hover-year{font-size:10px;font-weight:750;color:#738990}
.hover-title{font-size:17px;line-height:1.16;letter-spacing:-.035em;font-weight:800;color:#183c44;margin:7px 0 10px;overflow-wrap:break-word}
.hover-title.site-title{font-size:15px}
.hover-reading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #ecf0ef}
.hover-reading span{font-size:11px;color:#61767d;font-weight:550}
.hover-reading strong{white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.hover-reading strong small{font-size:10px;font-weight:720;color:#788c91}
.hover-foot{border-top:1px solid #ecf0ef;color:#788c91;margin-top:4px;padding-top:8px;font-size:9px;line-height:1.5}
.energy-label-container{background:none!important;border:0!important}
.nation-name,.capital-name{display:inline-block;position:relative;transform:translate(-50%,-50%);white-space:nowrap;pointer-events:none}
.nation-name{font:750 10px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#496363;text-shadow:-1px -1px 1px #f8fcf8,1px 1px 1px #f8fcf8,0 0 4px #f8fcf8;letter-spacing:.035em}
.capital-name{font:680 10px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#2c555e;text-shadow:0 1px 2px white,1px 0 2px white}
.capital-name:before{content:"";display:inline-block;background:#5c6f76;border:1px solid white;width:3px;height:3px;border-radius:50%;margin-right:4px;vertical-align:middle}
.leaflet-control-zoom{border:1px solid #c6dadd!important;box-shadow:0 4px 14px #2a4f5921!important;border-radius:9px!important;overflow:hidden}
.leaflet-control-zoom a{background:#fff!important;color:#234c58!important;border:0!important}
.leaflet-control-zoom a:first-child{border-bottom:1px solid #e1eae9!important}
.leaflet-control-attribution{background:#ffffffbf!important;color:#6c8587!important}
.leaflet-control-attribution a{color:#456c71!important}
.leaflet-marker-pane,.leaflet-tooltip-pane{pointer-events:none}
@media(max-width:750px){.panel{width:305px}.energy-cursor-card{width:236px}}
@media(max-width:620px){.panel{width:100%;height:36dvh}.map-wrap{min-height:47dvh}.energy-cursor-card{width:224px;padding:11px 12px}.hover-title{font-size:15px}.map-key{max-width:245px;font-size:9px}.balance-gradient{width:110px}.map-banner{max-width:205px}}

/* Map-first view. No left dashboard, country metrics belong to the pointer. */
.app>.map-wrap{flex:1 1 auto;width:100%;min-height:0}
.map-toolbar{position:absolute;left:16px;top:16px;z-index:1000;display:flex;align-items:center;gap:8px;padding:9px;background:rgba(255,255,255,.96);border:1px solid #d4e0e0;border-radius:13px;box-shadow:0 6px 24px rgba(20,50,60,.17);max-width:calc(100% - 85px)}
.toolbar-field{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:10px;line-height:1.15;color:#698085;font-weight:740}
.toolbar-field select{width:178px;max-width:100%;border:1px solid #d7e2e3;border-radius:8px;background:#fafdfc;color:#193e43;padding:8px 8px;font-size:12px;font-weight:650;min-height:34px}
#fuel-select{width:160px}
#reset-view{white-space:nowrap;background:#edf4f2;color:#285e57;border:1px solid #d5e3e0;border-radius:8px;padding:9px 11px;font-size:11px;font-weight:750;align-self:flex-end;min-height:34px}
#reset-view:hover{background:#daeae5}
.map-about{align-self:flex-end;position:relative}
.map-about>summary{list-style:none;cursor:pointer;white-space:nowrap;background:#fff;color:#3d666b;border:1px solid #d5e2e2;border-radius:8px;padding:9px 10px;font-size:11px;font-weight:720;min-height:34px}
.map-about>summary::-webkit-details-marker{display:none}
.map-about[open]>summary{background:#e1f0eb}
.about-popover{position:absolute;left:auto;right:0;top:calc(100% + 14px);width:310px;max-width:min(310px,calc(100vw - 25px));max-height:min(420px,68vh);overflow:auto;background:#fff;color:#24464c;border:1px solid #d0e1e1;box-shadow:0 14px 38px rgba(20,51,59,.22);border-radius:12px;padding:16px;font-size:12px;line-height:1.55;z-index:1005}
.about-popover strong{font-size:13px}
.about-popover p{margin:9px 0;color:#506b70}
.about-popover a{color:#187766}
.map-key{left:16px;bottom:20px;pointer-events:none}
.map-key .hint{font-size:10px;color:#71858b;line-height:1.4;margin-top:6px}
.energy-cursor-card{z-index:1200;width:270px;max-width:calc(100% - 18px);padding:12px 14px}
.hover-reading span{font-size:11px;font-weight:700;color:#3c5e65}
.hover-reading strong{font-size:13px;letter-spacing:-.03em}
.leaflet-control-zoom{margin-top:16px!important;margin-right:16px!important}
@media(max-width:740px){
 .map-toolbar{left:9px;top:9px;max-width:calc(100% - 61px);padding:7px;gap:6px;flex-wrap:wrap}
 .toolbar-field select{width:144px;padding:6px;font-size:11px;min-height:32px}
 #fuel-select{width:132px}
 #reset-view,.map-about>summary{padding:8px;font-size:10px;min-height:32px}
 .leaflet-control-zoom{margin-top:12px!important;margin-right:9px!important}
}
@media(max-width:620px){
 .app>.map-wrap{width:100%;min-height:0;flex:1}
 .map-toolbar{max-width:calc(100% - 61px);gap:5px;padding:6px}
 .toolbar-field{font-size:9px}
 .toolbar-field select{width:117px;font-size:10px}
 #fuel-select{width:113px}
 #reset-view,.map-about>summary{font-size:10px;padding:7px}
 .map-key{left:9px;bottom:12px;max-width:220px!important;font-size:9px;padding:9px 11px}
 .map-key .hint{font-size:9px}
 .status{right:9px;bottom:12px;max-width:123px;font-size:9px}
 .energy-cursor-card{width:240px}
 .hover-reading strong{font-size:12px}
 .about-popover{left:0;right:auto;max-width:calc(100vw - 24px)}
}

/* Measured output versus fuel-modelled BPD remains visually explicit. */
.energy-cursor-card .hover-year.modelled-tag{font-size:9px;color:#8a5817;background:#fff0d5;border:1px solid #f1d5a3;border-radius:5px;padding:3px 5px;white-space:nowrap;letter-spacing:.035em}
.energy-cursor-card .hover-reading strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.energy-cursor-card .hover-foot strong{color:#995a19;letter-spacing:.015em;font-size:9px}
.energy-cursor-card[data-kind="site"]{width:282px}
@media(max-width:620px){.energy-cursor-card[data-kind="site"]{width:258px}.energy-cursor-card .hover-reading strong{font-size:11px}}

/* Extraction is deliberately visually different from electricity, not another power-plant circle. */
.extraction-icon-wrap{background:transparent!important;border:0!important;pointer-events:auto}
.extraction-pin{display:flex;align-items:center;justify-content:center;width:15px;height:15px;background:#bc6a30;border:2px solid #fff;outline:1px solid #87441d;box-shadow:0 2px 8px #13343a60;border-radius:3px;transform:rotate(45deg);color:#fff;font:800 11px/1 Inter,sans-serif}
.extraction-pin.field-cluster{width:26px;height:26px;border-radius:8px;transform:none;background:#8c4b24;box-shadow:0 3px 14px #132f3e80}
.energy-cursor-card[data-kind="extraction"]{width:272px;pointer-events:none}
.energy-cursor-card[data-kind="extraction"] a{pointer-events:auto;color:#8e4c20;font-weight:750;text-decoration:underline}
.map-key .hint{max-width:350px}
.map-toolbar{flex-wrap:wrap}
@media(max-width:700px){.map-toolbar{max-width:calc(100% - 61px)}.map-toolbar .toolbar-field{min-width:0}#site-mode-select{width:112px}.map-key{max-width:220px}}

/* Global extraction overview: symbols stay bounded in dense field regions. */
.extraction-pin.field-cluster{font-size:10px;font-variant-numeric:tabular-nums}
.energy-cursor-card[data-kind="extraction"]{width:300px;max-width:calc(100vw - 22px)}
.energy-cursor-card[data-kind="extraction"] .hover-foot{font-size:10px;line-height:1.42}
.map-toolbar select:disabled{opacity:.43;cursor:not-allowed}
@media(max-width:620px){.energy-cursor-card[data-kind="extraction"]{width:270px}}

/* Explicit primary-energy production balance in the cursor country readout. */
.energy-cursor-card[data-kind="country"] .hover-reading.hover-balance{margin-top:3px;padding-top:9px;border-top:1px solid #d9e4e2}
.energy-cursor-card[data-kind="country"] .hover-balance span{font-weight:800}
.energy-cursor-card[data-kind="country"] .hover-balance.surplus span,
.energy-cursor-card[data-kind="country"] .hover-balance.surplus strong{color:#166b50}
.energy-cursor-card[data-kind="country"] .hover-balance.shortage span,
.energy-cursor-card[data-kind="country"] .hover-balance.shortage strong{color:#a0522d}
.energy-cursor-card[data-kind="country"] .hover-balance.balanced span,
.energy-cursor-card[data-kind="country"] .hover-balance.balanced strong{color:#385d68}
.energy-cursor-card[data-kind="country"] .hover-balance.unknown span,
.energy-cursor-card[data-kind="country"] .hover-balance.unknown strong{color:#687c82}
.energy-cursor-card[data-kind="country"] .hover-balance strong small{color:inherit;opacity:.8}
