assets/emergence.css
/* Emergence: an editorial instrument. All sizes are at least 15px; no color encodes truth. */
:root[data-theme=emergence]{--bg:#000;--panel:#0d1010;--raised:#191f1c;--ink:#f2f2e9;--dim:#bdccc7;--line:#3b4943;--accent:#b8d3c4;--gutter:clamp(16px,4vw,52px);--tile-ink:#102723;--tile-0:#a6b9aa;--tile-1:#8ba69d;--tile-2:#b6bdac;--tile-3:#92aca3}
[data-mode=light][data-theme=emergence]{--bg:#f2efe6;--panel:#faf8f1;--raised:#e3e8df;--ink:#23332f;--dim:#4e615c;--line:#a2b1a8;--accent:#315f52!important;--tile-ink:#102723;--tile-0:#c2d1bf;--tile-1:#acccc0;--tile-2:#d7d8bd;--tile-3:#bed1cd}
@media(prefers-color-scheme:light){:root[data-theme=emergence]:not([data-mode]){color-scheme:light;--bg:#f2efe6;--panel:#faf8f1;--raised:#e3e8df;--ink:#23332f;--dim:#4e615c;--line:#a2b1a8;--accent:#315f52!important;--tile-0:#c2d1bf;--tile-1:#acccc0;--tile-2:#d7d8bd;--tile-3:#bed1cd;--small-ink:#18231f}:root[data-theme=emergence]:not([data-mode]) .btn{color:#fff}}
[data-theme=emergence]{scroll-behavior:auto}
[data-theme=emergence] body{font-size:16px;line-height:1.6}
[data-theme=emergence] :is(p,li,dd,h3,a,summary){overflow-wrap:anywhere}
[data-theme=emergence] .chrome{position:relative;display:flex;flex-wrap:wrap;gap:12px;padding:16px var(--gutter);background:var(--bg);backdrop-filter:none}
[data-theme=emergence] .em-brand{display:contents}
[data-theme=emergence] .wordmark{margin:0;order:0;font-size:28px}
[data-theme=emergence] .chrome nav{order:2;width:100%;gap:26px;justify-content:flex-start;margin:0;font-size:15px}
[data-theme=emergence] .chrome .mode-toggle{order:1;margin-left:auto;font-size:15px;min-height:44px;padding:8px}
[data-theme=emergence] .chrome .badge{order:3;display:block;position:static;width:100%;font-size:15px;white-space:normal;border:0;padding:0;border-radius:0}
[data-theme=emergence] .chrome-footer{max-width:1200px;margin:0 auto;padding:0 var(--gutter);border:0}
[data-theme=emergence] .donate-strip{border-top:1px solid var(--line);padding:32px 0}
[data-theme=emergence] .donate-strip span{font-size:15px;color:var(--dim)}
[data-theme=emergence] .fineprint{font-size:15px;letter-spacing:0}
[data-theme=emergence] :is(.badge,.mode-toggle,.btn){transition:none}
.em-shell{max-width:1200px;margin:0 auto;padding:0 var(--gutter)}
.em-shell :is(h1,h2,h3){text-wrap:balance}
.em-shell h2{font:clamp(30px,4vw,44px)/1.15 var(--serif);letter-spacing:-.035em}
.em-head{padding:32px 0 0}
.em-edition{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:15px;color:var(--dim)}
.em-label{font:15px/1.5 var(--mono);color:var(--dim);letter-spacing:.015em}
.em-introduction{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px;padding:18px 0 24px}
.em-introduction h1{font:clamp(38px,6vw,64px)/1.04 var(--serif);letter-spacing:-.05em}
.em-app-intro{font-size:16px;color:var(--dim);max-width:40rem;margin:0 0 22px}
.em-note{font-size:15px;color:var(--dim);line-height:1.6}
.em-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:0;padding:20px 0;border-block:1px solid var(--line)}
.em-stats>div{display:flex;flex-direction:column-reverse;min-width:0}
.em-stats dt{font-size:15px;color:var(--dim)}
.em-stats dd{margin:0;font:36px/1.3 var(--serif)}
.em-stats dd a{display:block;font:15px/1.6 var(--sans);color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.em-lens-nav{display:flex;flex-wrap:wrap;gap:4px 22px;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px;position:sticky;top:0;z-index:30;background:var(--bg)}
.em-lens-nav a{padding:6px 0;color:var(--dim)}
.em-lens-nav a:hover{color:var(--ink)}
.em-lens-nav a[aria-current]{color:var(--ink);text-decoration:underline;text-underline-offset:6px}
.em-section{padding:36px 0;border-bottom:1px solid var(--line);scroll-margin-top:110px}
.em-shell :is([id^=country-],[id^=topic-],#verified){scroll-margin-top:110px}
.em-section-heading{display:flex;flex-direction:column;gap:14px;margin-bottom:24px}
.em-section-heading .em-label{margin-bottom:8px}
.em-section-aside{font-size:15px;color:var(--dim)}
.em-portrait-layout{display:grid;gap:20px}
.em-portrait{min-width:0}
.em-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:38px;margin-bottom:12px;font-size:15px}
.em-crumb a{text-decoration:underline;text-underline-offset:4px;color:var(--accent)}
.em-crumb [aria-current]{color:var(--ink)}
.em-treemap{position:relative;width:100%;height:340px;background:var(--bg);border:1px solid var(--line)}
.em-tile{position:absolute;border:3px solid var(--bg);background:var(--tile-0);color:var(--tile-ink);display:flex;align-items:flex-end;overflow:hidden;text-align:left;container-type:inline-size}
.em-tone-0{background:var(--tile-0)}.em-tone-1{background:var(--tile-1)}.em-tone-2{background:var(--tile-2)}.em-tone-3{background:var(--tile-3)}
.em-tile:hover{color:var(--tile-ink);box-shadow:inset 0 0 0 2px var(--tile-ink)}
.em-tile:focus-visible{outline:3px solid var(--ink);outline-offset:0;z-index:1}
.em-tile-copy{display:flex;flex-direction:column;gap:4px;padding:12px;width:100%;font-size:15px;line-height:1.25}
.em-tile-copy b{font-size:clamp(15px,9cqw,22px);font-weight:500;overflow-wrap:normal}
.em-tile-copy>span{font-size:15px}
.em-tile-copy>span>span{float:right}
.em-tile[data-compact] .em-tile-copy{visibility:hidden}
.em-tile-marker{display:none;position:absolute;inset:0;place-items:center;font:16px/1.2 var(--mono)}
.em-tile[data-compact] .em-tile-marker{display:grid}
.em-tile-preview{position:absolute;z-index:10;display:flex;flex-direction:column;gap:5px;width:230px;max-width:calc(100% - 16px);padding:12px 16px;background:var(--ink);color:var(--bg);border:1px solid var(--bg);box-shadow:0 5px 20px #0004;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.em-tile-preview b{font-size:16px;font-weight:600}
.em-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.em-portrait-caption{margin-top:12px}
.em-topic-index{border-top:1px solid var(--line);padding-top:16px}
.em-topic-index ol{padding:0;margin:12px 0 16px;list-style:none}
.em-topic-index li a{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:11px 0;font-size:15px;min-height:44px}
.em-index-dot{width:9px;height:9px;border-radius:50%}
.em-topic-index li a span:last-child{font-family:var(--mono)}
.em-detail{min-width:0}
.em-detail h3{font:24px/1.3 var(--serif);margin:10px 0 16px}
.em-detail .em-record-grid{grid-template-columns:1fr}
.em-world{background:#000;border:1px solid var(--line);margin-bottom:16px;position:relative}
.has-shell .em-section#map[data-pane-on]{display:flex;flex-direction:column}
.has-shell .em-world{flex:1 0 auto;min-height:440px;display:flex;flex-direction:column;justify-content:center;padding:0;margin-bottom:0}
.em-map-window{position:relative;overflow:hidden;isolation:isolate;flex:1 1 auto;min-height:0;display:flex}
.has-shell .em-world .em-map-window{flex:0 0 auto;height:clamp(360px,calc(100dvh - 340px),650px)}
.em-map-window .em-map{transform-origin:0 0;will-change:transform}
.has-shell .em-world .em-map{flex:1 1 auto;min-height:0;width:100%;max-width:100%;height:100%;margin:0 auto}
.has-shell .em-world figcaption{flex:0 0 auto}
.em-map{display:block;width:100%;height:auto}
.em-land{fill:#273a45;stroke:#71888e;stroke-width:.5;fill-rule:evenodd;pointer-events:none;vector-effect:non-scaling-stroke}
.em-hot{fill:#a2c5af;stroke:none;transition:fill-opacity .8s ease}
.em-contested-ground{fill:#273a45}
.em-contested-hatch{fill:url(#em-dispute-hatch)}
.em-hatch-line{fill:none;stroke:#d6c59f;stroke-width:.6}
.em-border{fill:none;stroke:#d6c59f;stroke-width:1;vector-effect:non-scaling-stroke;stroke-linecap:round}
.em-border-ordinary{stroke:#9bb0b6;stroke-width:.6;pointer-events:none}
.em-border-disputed{stroke-dasharray:4 3}
.em-border-claim{stroke-dasharray:7 4;stroke-width:.8}
.em-border-control{stroke-dasharray:6 3 1 3}
.em-border-uncertain{stroke-dasharray:1 3}
.em-border-zone{stroke:#b7bfc0;stroke-dasharray:2 3;stroke-width:.8}
.em-map-region:focus-visible .em-contested-ground,.em-map-region.em-region-selected .em-contested-ground{fill:#35454b}
.em-map-region:focus-visible .em-contested-hatch{stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.em-map-touch{touch-action:none;user-select:none;cursor:grab}
.em-map-touch:active{cursor:grabbing}
.em-map:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.em-map-moving a{pointer-events:none}
.em-world .em-map:is(.em-map-moving,.em-map-close) .em-dot{filter:none}
.em-map-local .em-land{stroke:none}
.em-dot{stroke:none;transition:opacity .8s ease}
.em-map a:hover .em-dot,.em-map a:focus .em-dot{fill:#fff;stroke:#fff;filter:drop-shadow(0 0 8px #fff)}
.em-map a:hover .em-dot,.em-map a:focus .em-dot{stroke:#fff;stroke-width:3;fill:#fff}
[data-mode=light] .em-dot{fill:#1c4739;stroke:#fff;stroke-width:1;filter:drop-shadow(0 0 3px #315f5277)}
[data-mode=light] .em-map a:hover .em-dot,[data-mode=light] .em-map a:focus .em-dot{fill:#0d211c;stroke:#0d211c}
[data-mode=light] .em-world{background:#fff}
[data-mode=light] .em-land{fill:#e3e8df;stroke:#9ab0a4}
[data-mode=light] .em-hot{fill:#8fb8a4;stroke:#315f52}
[data-mode=light] .em-hot{stroke:none}
[data-mode=light] .em-contested-ground{fill:#e3e8df}
[data-mode=light] .em-hatch-line{stroke:#655231}
[data-mode=light] .em-border{stroke:#655231}
[data-mode=light] .em-border-ordinary{stroke:#496358}
[data-mode=light] .em-border-zone{stroke:#667376}
[data-mode=light] .em-map-region:focus-visible .em-contested-ground,[data-mode=light] .em-map-region.em-region-selected .em-contested-ground{fill:#ccd5c6}
[data-mode=light] .em-map-region:focus-visible .em-contested-hatch{stroke:#283b33}
.em-world .em-tile-preview a{color:inherit;text-decoration:underline;text-underline-offset:4px;padding:8px 0;min-height:44px}
.em-map a:focus{outline:none}
.em-world figcaption{display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px 16px;color:var(--dim);border-top:1px solid var(--line);font-size:15px;justify-content:space-between}
.em-world figcaption i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:6px}
.em-map-tools{display:flex;gap:4px;flex:0 0 auto}
.em-map-tools button{min-width:44px;min-height:44px;padding:8px 12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:4px;font-size:16px}
.em-map-tools button:disabled{color:var(--dim);cursor:default}
.em-map-picker{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:15px;flex:0 0 auto}
.em-map-picker select{min-width:0;width:100%;min-height:44px;padding:8px;background:var(--panel);color:var(--ink);border:1px solid var(--line);font-size:16px}
.em-map-hint{font-size:15px}
.em-world .em-map-legend-link{order:-1;color:var(--ink);text-decoration:underline;text-underline-offset:4px;min-height:24px}
.em-map-notes{flex:none;padding:0;border-bottom:1px solid var(--line);font-size:15px;scroll-margin-top:12px}
.em-map-notes>summary,.em-map-corrections>summary{min-height:44px;display:list-item;padding:10px 0;cursor:pointer;color:var(--ink)}
.em-map-notes>p{margin:12px 0;max-width:75ch}
.em-map-notes a{color:var(--accent);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.em-map-key{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;padding:0;margin:16px 0;color:var(--ink)}
.em-map-key li{display:flex;align-items:center;gap:10px}
.em-key-line{width:36px;height:8px;flex:none;overflow:visible}
.em-map-region-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:16px}
.em-region-note{border-top:1px solid var(--line);scroll-margin-top:12px;min-width:0}
.em-region-note>summary{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:14px 0;cursor:pointer;min-height:48px}
.em-region-note>summary>span:first-child{font-weight:600;color:var(--ink)}
.em-region-status{flex:none;color:var(--dim);font-size:15px}
.em-region-note>p{margin:0 0 12px}
.em-map-locate{min-height:44px;padding:8px 12px;margin-bottom:16px;background:var(--panel);border:1px solid var(--line);color:var(--ink);border-radius:4px;font-size:15px;cursor:pointer}
.em-map-corrections{margin-top:20px}
.em-map-corrections li{margin:12px 0}
@media(max-width:600px){.em-map-region-list{grid-template-columns:1fr}.em-region-note>summary{flex-wrap:wrap;gap:4px 12px}}
@media(max-width:900px){
.has-shell .em-section#map[data-pane-on]{display:block}
.has-shell .em-world{display:block;flex:none;min-height:0;padding:0;margin-bottom:16px}
.has-shell .em-world :is(.em-map-window,.em-map){display:block;flex:none;width:100%;height:260px;max-width:100%;margin:0}
.em-map-touch{touch-action:none;user-select:none;cursor:grab}
.em-map-touch:active{cursor:grabbing}
.em-world .em-tile-preview{display:none}
.has-shell .em-shell #map :is(.em-country-list,.em-country){scroll-margin-top:12px}
}
.em-country-list{margin-top:20px}
.em-country-list>summary{padding:12px 0;min-height:44px;cursor:pointer;color:var(--accent)}
.em-countries{display:grid;gap:0 24px;align-items:start}
.em-country{min-width:0;border-bottom:1px solid var(--line);scroll-margin-top:20px}
.em-country>summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;padding:12px 0;min-height:44px}
.em-country>summary::before{content:'+';color:var(--accent)}
.em-country[open]>summary::before{content:'−'}
.em-country>summary span:first-child{margin-right:auto}
.em-country .em-note{margin-bottom:12px}
.em-record-reference{padding:16px 0;border-top:1px solid var(--line);font-size:16px}
.em-record-reference>p+p{margin-top:10px}
.em-read-record{display:block;font-size:15px;color:var(--accent);margin:8px 0;text-decoration:underline;text-underline-offset:4px}
.em-boundary-intro{display:grid;gap:20px;margin-bottom:14px}
.em-control{display:flex;flex-direction:column;gap:6px;min-width:0}
.em-section-heading .em-control{width:100%;max-width:15rem}
.em-control select{background:var(--panel);color:var(--ink);border:1px solid var(--line);font-size:16px;padding:10px;min-height:44px;width:100%}
.em-boundary-grid{margin-top:18px}
.em-record-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.em-record{padding:20px;background:var(--panel);border:1px solid var(--line);min-width:0;scroll-margin-top:110px}
.em-record:target{outline:2px solid var(--accent);outline-offset:3px}
.em-record-identity{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px;font-size:15px}
.em-status{font-size:15px;color:var(--accent);font-weight:500}
.em-record-type{font-size:15px;color:var(--dim);border-left:1px solid var(--line);padding-left:8px}
.em-record h3{font:22px/1.3 var(--serif);letter-spacing:-.02em;margin:0 0 10px}
.em-source{display:inline-block;color:var(--accent);font-size:15px;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:7px 0}
.em-claim{margin:16px 0;font-size:16px;line-height:1.7}
.em-claim .em-label{margin-bottom:6px}
.em-uncertainty{background:var(--raised);border-left:2px solid var(--accent);padding:14px 16px;font-size:16px;line-height:1.7;margin-top:16px}
.em-uncertainty .em-label{color:var(--ink);margin-bottom:6px}
.em-boundary-record .em-uncertainty{margin-top:8px}
.em-record-context{font-size:15px;border-top:1px solid var(--line);margin-top:20px;padding-top:8px}
.em-record-context summary{padding:8px 0;cursor:pointer;min-height:44px;color:var(--dim)}
.em-record-context dl{margin:12px 0 0}
.em-record-context dt{color:var(--dim);margin-top:12px}
.em-record-context dd{margin:4px 0 0;color:var(--ink)}
.em-inline-link{display:inline-block;color:var(--accent);font-size:15px;text-decoration:underline;text-underline-offset:5px;padding:12px 0;min-height:44px}
.em-search{display:grid;gap:10px;margin-bottom:22px}
.em-search input{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);padding:12px;background:var(--panel);color:var(--ink);font-size:16px}
.em-search input::placeholder{color:var(--dim);opacity:1}
.em-group{border-top:1px solid var(--line);scroll-margin-top:20px}
.em-group>summary{display:flex;justify-content:space-between;gap:18px;padding:18px 0;cursor:pointer;align-items:center;min-height:56px}
.em-group>summary>span:first-child{font:clamp(20px,2vw,25px)/1.3 var(--serif)}
.em-group>summary>span:last-child{font-size:15px;color:var(--dim);text-align:right}
.em-group[open]>summary>span:last-child>span{display:inline-block;transform:rotate(45deg)}
.em-group>.em-record-grid{padding-bottom:24px}
.em-empty{padding:24px;border:1px solid var(--line)}
.em-compare{display:grid;gap:26px}
.em-compare h2{margin:8px 0 14px}
.em-timeline{position:relative;padding:20px;border-left:1px solid var(--line);align-self:center;display:flex;flex-direction:column;gap:8px}
.em-timeline-dot{width:11px;height:11px;position:absolute;left:-6px;top:28px;border-radius:50%;background:var(--accent)}
.em-method-grid{display:grid;gap:28px}
.em-method-grid>div>p+p{margin-top:14px}
.em-method-stats{margin:20px 0 0;font-size:15px}
.em-method-stats>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:10px 0;border-top:1px solid var(--line)}
.em-method-stats dt{color:var(--dim)}
.em-method-stats dd{margin:0}
.em-source-status{padding:0;list-style:none;margin:10px 0 14px;font-size:15px}
.em-source-status li{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;border-top:1px solid var(--line);padding:10px 0}
.em-source-status li span:last-child{color:var(--dim)}
.em-method-details{font-size:15px;margin-top:12px}
.em-method-details summary{cursor:pointer;color:var(--accent);padding:10px 0;min-height:44px}
.em-method-details p{margin:10px 0;color:var(--dim)}
.em-footer{border-top:1px solid var(--line);padding:24px 0 32px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;font-size:15px;color:var(--dim)}
.em-footer>a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.em-footer p{max-width:35rem}
.em-license-title{display:block;color:var(--ink);font-weight:600;margin-bottom:6px}
.em-verified{display:grid;gap:20px;margin-top:30px;border:1px solid var(--line);padding:22px;background:var(--panel);scroll-margin-top:20px}
.em-verified-count{font:64px/1 var(--serif)}
.em-verified-count span{display:block;font:15px/1.6 var(--sans);color:var(--dim);margin-top:8px}
.em-verified h3{font:26px/1.25 var(--serif);margin:8px 0 12px}
@media(max-width:599px){.em-head{padding-top:22px}.em-introduction{padding:16px 0 22px}.em-stats{padding:14px 0;gap:12px}.em-stats dd{font-size:28px}.em-lens-nav{gap:4px 14px;padding:10px 0}.em-tile-copy{padding:8px}.em-tile-copy b{font-size:15px}.em-treemap:not(.em-enhanced) .em-tile:nth-child(n+5) .em-tile-copy{visibility:hidden}.em-treemap:not(.em-enhanced) .em-tile:nth-child(n+5) .em-tile-marker{display:grid}.em-group>summary{align-items:start}.em-record{padding:16px}}
@media(min-width:600px){.em-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.em-countries{grid-template-columns:repeat(2,minmax(0,1fr))}.em-section-heading{flex-direction:row;justify-content:space-between;align-items:end}.em-section-aside{max-width:19rem;text-align:right}.em-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.em-introduction{grid-template-columns:1.45fr 1fr;align-items:end}.em-treemap{height:430px}.em-boundary-intro{grid-template-columns:1fr 15rem}.em-compare{grid-template-columns:1.6fr 1fr}.em-verified{grid-template-columns:150px 1fr}}
@media(min-width:1000px){[data-theme=emergence] .chrome{flex-wrap:nowrap;gap:24px}[data-theme=emergence] .em-brand{display:flex;align-items:center;gap:20px}[data-theme=emergence] .chrome .badge{width:auto;border:1px solid var(--line);padding:6px 12px;border-radius:999px}[data-theme=emergence] .chrome nav{width:auto;margin-left:auto;order:0}[data-theme=emergence] .chrome .mode-toggle{margin-left:0}.em-head{padding-top:28px}.em-portrait-layout{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr);gap:32px}.em-topic-index{padding-top:0;border:0}.em-topic-index .em-label{min-height:50px;display:flex;align-items:center}.em-topic-index ol{margin-top:0}.em-treemap{height:420px}.em-section{padding-block:36px}.em-method-grid{grid-template-columns:1fr 1fr;gap:48px}.em-search{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}}
@media(prefers-reduced-motion:reduce){[data-theme=emergence]{scroll-behavior:auto}}
/* Event layer: deduplicated events with facets inside the drill leaf. */
.em-event{border:1px solid var(--line);border-radius:10px;padding:16px 16px 4px;background:var(--panel)}
.em-event-meta{margin:0 0 10px;font-size:15px;color:var(--dim)}
.em-event-meta .em-label{margin-right:6px}
.em-event-facets{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.em-facet-chip{border:1px solid var(--line);border-radius:99px;padding:3px 12px;font-size:15px;color:var(--dim);background:var(--raised)}
.em-event-records{display:grid;gap:12px;margin-bottom:12px}
.em-event-records .em-record{border:1px dashed var(--line);border-radius:8px}
/* Cross-day event threads: ongoing badges and the over-time list. */
.em-ongoing{border:1px solid var(--accent);border-radius:99px;padding:2px 11px;font-size:15px;color:var(--accent);white-space:nowrap}
.em-thread-list{list-style:none;margin:12px 0 0;padding:0}
.em-thread-item{display:grid;gap:8px;border-bottom:1px solid var(--line);padding:14px 0;font-size:15px}
.em-thread-open{color:var(--accent);text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:8px 0}
.em-thread-essence{color:var(--dim);line-height:1.4}
/* App-shell mode: identity strip stays fixed, panes toggle below, scroll lives in panes. */
/* The net's own status rail — purpose-built instrument panel, not a squeezed hero.
Editorial em-head stays for the no-JS page; the app regime swaps it for the rail. */
.em-rail{display:none}
.has-shell .em-head{display:none}
.has-shell .em-rail{grid-area:rail;display:flex;flex-direction:column;gap:16px;padding:26px 20px 22px;background:var(--panel);border-right:1px solid var(--line);min-height:0;overflow-y:auto;flex-shrink:0}
.em-rail-id h1{font:clamp(24px,1.9vw,30px)/1.05 var(--serif);letter-spacing:-.035em;margin:0 0 8px}
.em-rail-id .em-status{margin:0}
.em-rail-date{font:15px/1.4 var(--mono);color:var(--dim);margin:0;letter-spacing:.04em}
.em-rail-stats{display:flex;flex-direction:column;margin:0;border-top:1px solid var(--line)}
.em-rail-stats div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.em-rail-stats dt{font-size:15px;letter-spacing:.02em;color:var(--dim)}
.em-rail-stats dd{font:17px/1.2 var(--mono);margin:0;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
.em-rail-verified{font-size:15px;line-height:1.5;color:var(--dim);margin:0;border:1px dashed var(--line);border-radius:10px;padding:11px 13px}
.em-rail-verified b{color:var(--accent);font-weight:600}
.em-rail-note{font-size:15px;line-height:1.5;color:var(--dim);margin:auto 0 0;padding-top:12px;opacity:.9}
.has-shell .em-shell{padding:0;max-width:none}
.has-shell .em-shell h2{font-size:clamp(20px,1.9vw,26px)}
.has-shell .em-shell .em-section-heading{margin-bottom:18px}
.has-shell .em-shell .em-section{padding-block:22px}
@media(min-width:901px){
.has-shell .em-shell{display:grid;grid-template-columns:minmax(200px,250px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"rail nav" "rail pane"}
.has-shell .em-lens-nav{grid-area:nav;position:static;border-bottom:1px solid var(--line);padding:14px var(--gutter)}
.has-shell .em-shell > [data-pane]{grid-area:pane}
}
@media(max-width:900px){
/* pocket app: rail folds into a compact identity bar above the nav */
.has-shell .em-rail{grid-area:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:12px var(--gutter) 10px;border-right:0;border-bottom:1px solid var(--line);overflow:visible}
.em-rail-id{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.em-rail-id h1{font-size:20px;margin:0}
.em-rail-id .em-status{font-size:15px}
.em-rail-date{font-size:15px}
.em-rail-stats{flex-direction:row;gap:16px;border:0;margin:0}
.em-rail-stats div{border:0;padding:0;gap:6px}
.em-rail-stats div:nth-child(n+4){display:none}
.em-rail-verified{display:block;font-size:15px;border:0;border-radius:0;padding:0}.em-rail-note{display:none}
.has-shell .em-lens-nav{position:static;border-bottom:1px solid var(--line);padding:14px var(--gutter)}
}
.has-shell .em-shell .em-section{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:22px var(--gutter) 48px;border-bottom:0;scroll-margin-top:0}
.has-shell footer.chrome-footer[data-in-pane]{background:none;border:0;margin:28px 0 8px;padding:0}
.has-shell footer.chrome-footer[data-in-pane] .em-footer{border-top:1px solid var(--line);padding-top:18px}
.has-shell footer.chrome-footer[data-in-pane] .donate-strip{border-top:1px solid var(--line);padding:24px 0}
/* wide frames: record lists and country lists widen instead of stretching */
@media(min-width:1500px){
.has-shell .em-shell .em-record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.has-shell .em-shell .em-countries{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* About pane: the auditable pipe and source list. */
.em-pipe-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.em-pipe-steps li{border-left:2px solid var(--line);padding:2px 0 2px 14px;font-size:15px;line-height:1.6;color:var(--dim)}
.em-pipe-steps b{color:var(--ink);font-weight:600}
.em-source-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column}
.em-source-row{border-top:1px solid var(--line);padding:12px 0}
.em-source-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.em-source-head a{color:var(--ink);font-size:16px;text-decoration:underline;text-underline-offset:4px;min-height:0;padding:4px 0}
.em-source-status-chip{font:15px/1.4 var(--mono);color:var(--dim);border:1px solid var(--line);border-radius:99px;padding:4px 10px;white-space:nowrap}
.em-source-takes{margin:8px 0 0;font-size:15px;line-height:1.5;color:var(--dim)}
.em-source-basis{margin:8px 0 0;font-size:15px;line-height:1.5;color:var(--dim);padding-left:12px;border-left:1px solid var(--line)}
/* Phone chrome lives at the edges. The unenhanced document stays stacked. */
.em-more-toggle,.em-pocket-verified{display:none}
.em-more{inset:auto 8px calc(var(--em-dock-height,56px) + 8px);margin:0 auto;width:calc(100% - 16px);max-width:540px;max-height:calc(100dvh - var(--em-dock-height,56px) - 24px);overflow:auto;padding:20px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:16px;font-size:16px}
.em-more::backdrop{background:#0009}
.em-more-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.em-more-heading h2{font:26px/1.2 var(--serif);margin:0}
.em-more :is(button,a){font-size:15px;min-height:44px}
.em-more button{padding:8px 12px;background:var(--raised);color:var(--ink);border:1px solid var(--line);border-radius:6px}
.em-more-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:12px}
.em-more-links a{display:flex;align-items:center;color:var(--accent)}
.em-more-links a[aria-current]{text-decoration:underline;text-underline-offset:5px}
.em-more .em-rail-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;border:0;margin-bottom:16px}
.em-more .em-rail-stats div{display:flex;border-bottom:1px solid var(--line);padding:8px 0}
.em-more .em-rail-stats div:nth-child(n+4){display:flex}
.em-more .em-rail-stats dd{font-size:15px}
.em-more-settings{margin:12px 0}
.em-more .badge{display:block;border:0;border-radius:0;padding:8px 0;font-size:15px;white-space:normal;color:var(--dim)}
@media(max-width:900px){
.em-pocket[data-theme=emergence] header.chrome{display:none}
.em-pocket .em-shell{bottom:var(--em-dock-height,56px)}
.em-pocket .em-rail{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title date" "identity verified";gap:6px 8px;padding:calc(10px + env(safe-area-inset-top,0px)) var(--gutter) 10px;background:var(--bg)}
.em-pocket .em-rail-id{display:contents}
.em-pocket .em-rail-id h1{grid-area:title;font-size:20px}
.em-pocket .em-rail-id .em-status{grid-area:identity;font-size:15px;line-height:1.4;white-space:nowrap}
.em-pocket .em-rail-date{grid-area:date;font:15px/1.4 var(--sans);letter-spacing:0;text-align:right;white-space:nowrap}
.em-pocket .em-rail :is(.em-rail-stats,.em-rail-verified,.em-rail-note){display:none}
.em-pocket .em-pocket-verified{grid-area:verified;display:block;font-size:15px;line-height:1.4;color:var(--dim);text-align:right;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.em-pocket .em-lens-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:.85fr .95fr 1.35fr 1fr .8fr;gap:0;padding:0 8px env(safe-area-inset-bottom,0px);background:var(--panel);border-top:1px solid var(--line);border-bottom:0;overflow:visible}
.em-pocket .em-lens-nav a{display:flex;align-items:center;justify-content:center;min-height:56px;padding:10px 2px;text-align:center;font-size:15px;white-space:nowrap;border-top:2px solid transparent}
.em-pocket .em-lens-nav a[aria-current]{border-color:var(--accent);text-decoration:none;background:var(--raised)}
.em-pocket .em-lens-nav a:nth-of-type(n+5){display:none}
.em-pocket .em-more-toggle{display:block;min-height:56px;padding:10px 2px;background:none;color:var(--dim);font:15px/1.4 var(--sans);border:0;border-top:2px solid transparent;cursor:pointer}
.em-pocket .em-more-toggle[data-current]{border-color:var(--accent);color:var(--ink);background:var(--raised)}
.em-pocket .em-shell .em-section{padding-top:14px;padding-bottom:28px}
.em-pocket .em-shell .em-section-heading{flex-direction:row;align-items:start;gap:12px;margin-bottom:12px}
.em-pocket .em-section-aside{max-width:18rem;text-align:right;font-size:15px;line-height:1.4}
.em-pocket .em-world :is(.em-map-window,.em-map){height:clamp(320px,52dvh,520px)}
.em-pocket :is(.em-lens-nav a,.em-more-toggle,.em-pocket-verified):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
}
.has-shell .em-map-window .em-map{height:100%;min-height:0}
/* City-level place pins (gazetteer-resolved); zoom reveals them. */
.em-place{stroke:none;opacity:.95;transition:opacity .8s ease}
.em-map a:hover .em-place,.em-map a:focus .em-place{fill:var(--ink);stroke:var(--ink)}
.em-place-legend{color:var(--dim)}
/* Freshness: green on everything — brightness is age, never importance. */
.em-added{font:15px/1.4 var(--mono);color:var(--dim);white-space:nowrap}
.em-age-now{border-left:2px solid var(--accent);box-shadow:-1px 0 12px -6px var(--accent)}
.em-age-today{border-left:2px solid rgba(127,199,184,.45)}
.em-pin-now .em-place{fill:#d8ffe0;filter:drop-shadow(0 0 4px var(--accent));opacity:1}
.em-pin-today .em-place{fill:var(--accent);opacity:.95}
.em-rail-cycle{font:15px/1.4 var(--mono);color:var(--accent);margin:0;padding-top:2px}
/* Read marks: seen records dim; unread filter is a plain control, never a wall. */
.em-seen{opacity:.55;transition:opacity .3s}
.em-seen .em-status{opacity:.7}
.em-unread-btn{background:none;border:1px solid var(--line);border-radius:999px;color:var(--dim);font:15px/1 var(--mono);padding:12px 16px;min-height:44px;cursor:pointer}
.em-unread-btn:hover{color:var(--ink);border-color:var(--dim)}
.em-unread-btn[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
/* Map semantics: hue = dominant topic, shade = age of newest report
(solid fresh, fading with age). Size stays volume. Never importance. */
:root[data-theme=emergence]{
--t-conflict-security:#ff9d57;--t-politics-governance:#8fb0ff;--t-economy-business:#ffe066;
--t-society-culture:#ff8ad0;--t-health-medicine:#ff6b6b;--t-environment-climate:#4fae9b;
--t-science-discovery:#7ce8b0;--t-technology-ai:#6fd9e8;--t-arts-sports:#b78be0;--t-other:#9aa8a0;
}
[data-mode=light][data-theme=emergence]{
--t-conflict-security:#c26a24;--t-politics-governance:#3f6fd8;--t-economy-business:#a8921a;
--t-society-culture:#c2478e;--t-health-medicine:#c73a3a;--t-environment-climate:#2f7f6c;
--t-science-discovery:#2e9c6b;--t-technology-ai:#1595ad;--t-arts-sports:#8455c8;--t-other:#5c6b64;
}
.em-t-conflict-security .em-dot,.em-t-conflict-security .em-place,.em-t-conflict-security.em-key-dot{fill:var(--t-conflict-security);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-conflict-security) 55%,transparent))}
.em-t-politics-governance .em-dot,.em-t-politics-governance .em-place,.em-t-politics-governance.em-key-dot{fill:var(--t-politics-governance);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-politics-governance) 55%,transparent))}
.em-t-economy-business .em-dot,.em-t-economy-business .em-place,.em-t-economy-business.em-key-dot{fill:var(--t-economy-business);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-economy-business) 55%,transparent))}
.em-t-society-culture .em-dot,.em-t-society-culture .em-place,.em-t-society-culture.em-key-dot{fill:var(--t-society-culture);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-society-culture) 55%,transparent))}
.em-t-health-medicine .em-dot,.em-t-health-medicine .em-place,.em-t-health-medicine.em-key-dot{fill:var(--t-health-medicine);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-health-medicine) 55%,transparent))}
.em-t-environment-climate .em-dot,.em-t-environment-climate .em-place,.em-t-environment-climate.em-key-dot{fill:var(--t-environment-climate);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-environment-climate) 55%,transparent))}
.em-t-science-discovery .em-dot,.em-t-science-discovery .em-place,.em-t-science-discovery.em-key-dot{fill:var(--t-science-discovery);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-science-discovery) 55%,transparent))}
.em-t-technology-ai .em-dot,.em-t-technology-ai .em-place,.em-t-technology-ai.em-key-dot{fill:var(--t-technology-ai);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-technology-ai) 55%,transparent))}
.em-t-arts-sports .em-dot,.em-t-arts-sports .em-place,.em-t-arts-sports.em-key-dot{fill:var(--t-arts-sports);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-arts-sports) 55%,transparent))}
.em-t-other .em-dot,.em-t-other .em-place,.em-t-other.em-key-dot{fill:var(--t-other);filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 2px color-mix(in srgb,var(--t-other) 55%,transparent))}
.em-age-1 .em-dot,.em-age-1 .em-place{opacity:1}
.em-age-2 .em-dot,.em-age-2 .em-place{opacity:.6}
.em-age-3 .em-dot,.em-age-3 .em-place{opacity:.35}
.em-age-4 .em-dot,.em-age-4 .em-place{opacity:.18}
.em-map a:hover .em-dot,.em-map a:focus .em-dot,.em-map a:hover .em-place,.em-map a:focus .em-place{fill:#fff;opacity:1;filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 4px rgba(255,255,255,.8))}
.em-map-key{position:absolute;left:10px;bottom:46px;z-index:6;display:flex;flex-direction:column;gap:5px;padding:8px 10px;background:color-mix(in srgb,var(--panel) 88%,transparent);border:1px solid var(--line);border-radius:9px;pointer-events:none;max-width:min(72%,320px);font:11px/1.3 var(--mono);color:var(--dim);backdrop-filter:blur(3px)}
.em-k-row{display:flex;flex-wrap:wrap;gap:4px 10px}
.em-k-row span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.em-map-key i{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto}
.em-k-shade{background:var(--t-other)}
.em-map-key .em-t-conflict-security{background:var(--t-conflict-security)}
.em-map-key .em-t-politics-governance{background:var(--t-politics-governance)}
.em-map-key .em-t-economy-business{background:var(--t-economy-business)}
.em-map-key .em-t-society-culture{background:var(--t-society-culture)}
.em-map-key .em-t-health-medicine{background:var(--t-health-medicine)}
.em-map-key .em-t-environment-climate{background:var(--t-environment-climate)}
.em-map-key .em-t-science-discovery{background:var(--t-science-discovery)}
.em-map-key .em-t-technology-ai{background:var(--t-technology-ai)}
.em-map-key .em-t-arts-sports{background:var(--t-arts-sports)}
.em-map-key .em-t-other{background:var(--t-other)}
.em-map-key .em-k-row i{filter:none}
@media(max-width:600px){.em-map-key{left:8px;bottom:40px;padding:6px 8px;font-size:10px;max-width:60%}}
/* Declutter at close zoom: country dots recede; named places carry the detail. */
a.em-far{opacity:.4;transition:opacity .5s ease}
.em-preview-first{color:var(--accent)}
.em-map-key .em-k-shade:nth-child(1){opacity:1}
.em-map-key .em-k-shade:nth-child(2){opacity:.6}
.em-map-key .em-k-shade:nth-child(3){opacity:.35}
.em-map-key .em-k-shade:nth-child(4){opacity:.18}
/* Age legend: labeled ends with a fading bar — self-evident at a glance. */
.em-k-age span{gap:6px}
.em-k-bar{display:inline-block;height:5px;width:44px;border-radius:99px;background:linear-gradient(90deg,var(--t-other),color-mix(in srgb,var(--t-other) 18%,transparent));margin:0 2px}