*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,sans-serif;color:#14201c;background:#f6f3ec}
a{color:inherit}.nav{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:14px 28px;background:#0e2a22;color:#fff}
.logo{font-family:Fraunces,serif;font-weight:900;font-size:22px;text-decoration:none}.logo span{color:#ffc53d}.nav nav{display:flex;gap:22px}.nav nav a{text-decoration:none;font-weight:600;font-size:14px;opacity:.9}.navcta{background:#ffc53d;color:#111!important;padding:9px 16px;border-radius:999px;text-decoration:none;font-weight:800;font-size:14px}
.section,.explorer{max-width:1440px;margin:auto;padding:42px 28px}.section.alt,.explorer{background:transparent}.sec-head h2{font-family:Fraunces,serif;font-size:36px;margin:0 0 6px}.sec-head p{color:#5a6d66;margin:0 0 20px}
.cat-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.pill{border:2px solid #d8d2c2;background:#fff;padding:8px 14px;border-radius:999px;font-weight:700;cursor:pointer}.pill.active{background:#0e2a22;color:#fff;border-color:#0e2a22}
.layout{display:grid;grid-template-columns:232px minmax(0,1fr) 288px;gap:14px;align-items:start}.panel{background:#fff;border:1px solid #e6e0d2;border-radius:18px;padding:14px}.panel-h{font-size:11px;letter-spacing:.1em;font-weight:900;color:#0e7a5f;margin-bottom:10px}
#search,#dsSearch{width:100%;padding:9px 10px;border:2px solid #e6e0d2;border-radius:10px;margin-bottom:10px;font-family:inherit;font-size:13px}.detail #search{margin-bottom:12px}
#datasetList{display:flex;flex-direction:column;gap:5px;max-height:560px;overflow:auto}
.ds-item{display:flex;gap:8px;width:100%;text-align:left;background:#fbfaf6;border:1.5px solid #eee8d8;padding:7px 9px;border-radius:10px;cursor:pointer;font-family:inherit;align-items:center;line-height:1.25}.ds-item.active{border-color:#0e2a22;background:#eaf4ef}.ds-item .ic{font-size:16px;flex:none}.ds-item b{font-size:12.5px;display:inline;font-weight:700}.ds-item small{display:none;color:#7a8a83;font-size:11px;line-height:1.4;margin-top:4px}.ds-item.active small{display:block}.ds-item.active b{display:block}.badge{font-size:8.5px;font-weight:700;letter-spacing:.04em;padding:2px 6px;border-radius:99px;background:#f0ebe0;color:#7a8a83;white-space:nowrap}.badge.cur{background:#e4ecf7;color:#5b7290}
.source-note{font-size:11px;color:#7a8a83;line-height:1.5;margin:10px 2px 0}
#legend{height:12px;border-radius:99px}.legend-labels{display:flex;justify-content:space-between;font-size:11.5px;font-weight:700;margin-top:6px}
.mapwrap{background:#fff;border:1px solid #e6e0d2;border-radius:18px;padding:18px}.map-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:start}.map-toolbar h3{font-family:Fraunces,serif;font-size:26px;margin:0}.map-toolbar p{margin:4px 0;color:#6b7d76;font-size:13px}.toolbar-btns{display:flex;gap:8px;flex:none}.toolbar-btns button,.timeline button{border:2px solid #0e2a22;background:#fff;padding:8px 13px;border-radius:999px;font-weight:800;cursor:pointer;white-space:nowrap}.play{background:#ffc53d!important}
#map{position:relative;background:#0e2a22;border:2px solid #0e2a22;border-radius:14px 14px 0 0;overflow:hidden;min-height:440px}#map svg{width:100%;display:block}.ocean{fill:#bfe0ee;pointer-events:none}.graticule{fill:none;stroke:rgba(255,255,255,.45);stroke-width:.4;pointer-events:none}.country{stroke:#1a1a1a;stroke-width:.7;cursor:pointer}.country:hover{stroke:#000;stroke-width:1.4}.data-status{font-size:11px!important;color:#8a9a93!important;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.map-legend{padding:10px 4px 12px;border-bottom:1px solid #eee8d8}.map-legend-bar #legend{height:14px;border-radius:99px}.map-legend-meta{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;font-weight:700;color:#3d4f48;margin-top:6px}.timeline-na{margin-top:0;background:#fff7d6;border:1.5px solid #ffc53d;border-top:none;color:#5b4a00;padding:13px 15px;border-radius:0 0 12px 12px;font-size:13.5px;line-height:1.55}.nodata-chip{display:inline-block;width:12px;height:12px;border-radius:3px;background:repeating-linear-gradient(45deg,#cfd4d1,#cfd4d1 2px,#eef0ee 2px,#eef0ee 4px);vertical-align:-1px;margin-right:5px}
#tooltip{position:absolute;pointer-events:none;background:#0e2a22;color:#fff;padding:9px 11px;border-radius:10px;font-size:12.5px;opacity:0;z-index:5;max-width:240px;line-height:1.45}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:800;color:#0e7a5f;background:rgba(255,255,255,.75);z-index:4}
.timeline{display:flex;align-items:center;gap:12px;margin-top:0;background:#0e2a22;color:#fff;padding:12px 14px;border-radius:0 0 12px 12px}.timeline.playing{box-shadow:inset 0 0 0 2px #ffc53d}.timeline input[type=range]{flex:1;accent-color:#ffc53d;height:28px;cursor:pointer}.timeline button#latestBtn{padding:8px 11px}.year{font-family:Fraunces,serif;font-size:24px;min-width:64px;color:#ffc53d}.range-label{font-size:11px;opacity:.7}.hint{font-size:12px;color:#8a9a93}
.rankings{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-top:14px}.rank-col{background:#fbfaf6;border:1px solid #eee8d8;border-radius:14px;padding:14px}.rank-col h4{margin:0 0 8px}.rank-col ol{margin:0;padding-left:18px;font-size:13px;line-height:1.9}.rank-col p{font-size:13px;line-height:1.6;color:#3d4f48}
.detail{position:sticky;top:78px}.detail h3{font-family:Fraunces,serif;font-size:26px;margin:4px 0}.detail .big{font-size:30px;font-weight:900;color:#0e7a5f}.kv{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0eadb;font-size:13px}.spark{margin:12px 0}
.tablewrap{background:#fff;border:1px solid #e6e0d2;border-radius:16px;overflow:auto;max-height:520px}table{width:100%;border-collapse:collapse;font-size:13.5px}th{text-align:left;padding:12px;background:#0e2a22;color:#fff;position:sticky;top:0}td{padding:10px 12px;border-bottom:1px solid #f0eadb}tr[data-iso],tr[data-qid]{cursor:pointer}tr[data-iso]:hover,tr[data-qid]:hover{background:#eaf4ef}
.sources-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.src{background:#fff;border:1px solid #e6e0d2;border-radius:14px;padding:16px}.src b{display:block;margin-bottom:6px}.src span{font-size:13px;color:#5a6d66;line-height:1.6}.honest{margin-top:14px;background:#fff7d6;border:1.5px solid #ffc53d;border-radius:14px;padding:16px;font-size:13.5px;line-height:1.6}
footer{background:#0e2a22;color:#fff;padding:36px 28px;text-align:center;margin-top:40px}footer a{color:#ffc53d}
@media(max-width:600px){.map-toolbar{flex-wrap:wrap}.toolbar-btns{flex-wrap:wrap}.timeline{flex-wrap:wrap}.timeline .range-label{width:100%;text-align:right}}
@media(max-width:1050px){.layout{grid-template-columns:1fr}.rankings,.sources-grid{grid-template-columns:1fr}.nav nav{display:none}.detail{position:static}#datasetList{max-height:260px}#map{min-height:380px}}
