:root{color-scheme:dark;--bg:#080f14;--line:#303e49;--muted:#94a5b2;--purple:#c29ae9}*{box-sizing:border-box}body{margin:0;padding:18px 22px;background:var(--bg);color:#e2e6ec;font:14px Arial,sans-serif}button,a{font:inherit}button,a[href]{cursor:pointer}button{color:inherit;background:#111d26;border:1px solid var(--line);border-radius:5px}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid #fff;outline-offset:3px}header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;min-height:94px}.brand{display:flex;align-items:center;gap:15px;color:var(--purple)}.omega{font:64px Georgia;line-height:.95}.wordmark{font-weight:700;letter-spacing:2.5px;font-size:20px;white-space:nowrap}.network{font-size:13px;letter-spacing:2.6px;margin-top:16px;font-weight:bold}.ethos{text-align:center;color:#ef626b;line-height:1.7}.ethos button{border:0;background:transparent;color:#bcb1cd;padding:10px 8px}.ethos strong:last-child{font-size:13px}.clock{text-align:right;font-family:monospace;white-space:nowrap}.clock time{font-size:32px;font-weight:bold}.clock div{font-size:13px;color:#b1bdc6;margin-top:5px}nav{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0}nav a,nav button{display:flex;align-items:center;justify-content:center;min-height:57px;text-decoration:none;color:#a7b6c2;background:#101b24;border:1px solid #303d48;border-radius:6px}nav .active{color:#e8dff4;background:#25313e;border-color:#857099;box-shadow:inset 0 3px #c19bea}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 16px}h1{font-size:28px;letter-spacing:-.8px;margin:0}.heading p{margin:6px 0 0;color:var(--muted);font-size:12px}.period{display:flex;gap:5px}.period button{padding:12px 16px}.period span{font-size:11px;margin-left:4px;color:var(--muted)}.selected{background:#273342!important;border-color:#9e81bc!important}.filterbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 12px}#filters{display:flex;gap:5px;flex-wrap:wrap}#filters button{font-size:12px;padding:9px 10px;background:transparent;border-color:transparent}#filters button.active{border-color:#536577;background:#1c2933}i.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--dot);margin-right:6px}#dateRange{font:12px monospace;color:#a4b5c2;white-space:nowrap}.mapcard{border:1px solid var(--line);background:#0b151d}.maptop{display:flex;justify-content:space-between;padding:14px 17px;border-bottom:1px solid #24323d;font:12px monospace;color:#9eafb9}.maptop>span:last-child{text-align:right}.maptop small{display:block;margin-top:5px;font-size:11px;color:#80939f}.mapwrap{position:relative;overflow:hidden}#map{display:block;width:100%;max-height:530px;min-height:330px;touch-action:none;cursor:grab}.land{fill:#22313c;stroke:#94a5b0;stroke-width:.7;vector-effect:non-scaling-stroke}.grid{fill:none;stroke:#17242f;stroke-width:.6}.ocean{fill:#526675;font:10px monospace;letter-spacing:2px}.marker{cursor:pointer;stroke:#14232c;stroke-width:2;transition:opacity .15s}.marker:hover,.marker:focus{stroke:#fff}.maphint{position:absolute;left:15px;top:12px;font:11px monospace;color:#8da0af;pointer-events:none}.zoom{position:absolute;right:14px;bottom:14px;display:grid}.zoom button{border-radius:0;width:35px;height:34px;font-size:21px;background:#1a2732}.zoom button:first-child{border-radius:4px 4px 0 0}.zoom button:last-child{border-radius:0 0 4px 4px}.mapbottom{display:flex;justify-content:space-between;gap:8px;padding:11px 15px;background:#101e28;border-top:1px solid #263542;font:11px monospace;color:#98acbb}.footnote{color:#8d9ba7;font-size:11px;margin:9px 0 20px}.years{display:flex;align-items:center;gap:8px;margin-bottom:28px}.years>span{font:11px monospace;letter-spacing:1.5px;color:#8294a0;margin-right:10px}.years button{min-width:76px;padding:10px 14px}.years small{display:block;font-size:10px;color:#8da0af;margin-top:4px}.records{border-top:1px solid var(--line)}.recordhead{display:flex;justify-content:space-between;align-items:center}.recordhead h2{font-size:17px}.recordhead span{font-size:12px;color:var(--muted)}#eventlist{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.record{text-align:left;padding:14px;background:#0d1820;border-color:#263540}.record strong{display:block;font-size:14px;margin:9px 0 5px}.record small{display:block;color:#98aaba;font-size:11px;line-height:1.6}.record .cat{font:10px monospace;text-transform:uppercase;letter-spacing:1px;color:#bac8d1}.record:hover{border-color:#788d9f;background:#13232e}footer{font-size:11px;color:#8294a2;line-height:1.8;border-top:1px solid #283640;margin-top:26px;padding:18px 0}#detail{position:absolute;left:18px;bottom:18px;background:#12212c;border:1px solid #6b8094;box-shadow:0 10px 40px #0008;width:330px;max-width:calc(100% - 75px);padding:18px;border-radius:6px;z-index:2}#detail h2{font-size:20px;margin:10px 0}#detail p{font-size:13px;line-height:1.6;color:#c2cdd6}#detail small{display:block;line-height:1.5;color:#8fa6b8;font-size:11px}#detail a,dialog a{color:#caa4f2}#detail .close{float:right;border:0;background:transparent;font-size:20px}#pending{position:absolute;inset:0;background:#0b151de8;align-items:center;justify-content:center;flex-direction:column;gap:15px}#pending:not([hidden]){display:flex}#pending strong{font-size:24px}#pending span{color:var(--muted)}#pending button{padding:10px 16px}dialog{max-width:640px;width:calc(100% - 32px);border:1px solid #536778;background:#101d27;color:#d9e2e9;padding:30px;border-radius:8px;line-height:1.7}dialog::backdrop{background:#000a}dialog h2{margin:0 0 14px}dialog p{color:#aebfca}#closeDialog{float:right;font-size:24px;border:0;background:transparent}dialog li{margin:12px 0}
@media(min-width:1500px){body{max-width:1600px;margin:auto}}@media(max-width:900px){header{flex-wrap:wrap}.ethos{order:3;width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;min-height:40px}nav{grid-template-columns:repeat(4,1fr)}nav a,nav button{min-height:40px}.filterbar{align-items:flex-start;flex-direction:column}#eventlist{grid-template-columns:repeat(2,1fr)}.mapbottom{font-size:10px}.years{overflow:auto}.heading{align-items:flex-start}}@media(max-width:560px){body{padding:14px 12px}.omega{font-size:45px}.wordmark{font-size:14px}.network{font-size:9px;letter-spacing:1.5px;margin-top:10px}.brand{gap:8px}.clock time{font-size:21px}.clock div{font-size:10px}.ethos strong:first-child{display:none}.ethos strong:last-child{font-size:11px}.heading{flex-direction:column;gap:13px}h1{font-size:25px}.period{width:100%}.period button{flex:1}#filters button{padding:8px 6px;font-size:11px}#map{min-height:300px}.mapbottom{flex-direction:column}.maphint{font-size:9px}.years>span{display:none}#eventlist{grid-template-columns:1fr}.recordhead span{font-size:10px}.years button{min-width:65px}.maptop{font-size:10px;padding:10px}.maptop small{font-size:9px}#detail{bottom:10px;left:10px;padding:14px}#detail p{font-size:11px}#detail h2{font-size:17px}}

.catalogue-notice{font-size:12px;line-height:1.6;color:#b1bfcc;padding:10px 13px;border-left:2px solid #b494dc;background:#111c26;margin:0 0 12px}#detail{max-height:80%;overflow:auto}

/* Shared War-map geometry, projection, frame and cartographic styling. */
#map{height:clamp(300px,50vh,570px);max-height:none;min-height:0;background:#0b141d}.land{fill:#23313d;stroke:#c7d1d8;stroke-width:.8;vector-effect:non-scaling-stroke}.ocean{fill:#435968;font:12px ui-monospace,monospace;letter-spacing:2px}.marker{stroke:#131d25;stroke-width:1.4}
@media(max-width:600px){#map{height:300px;min-height:260px}}

.timecontrols{display:flex;align-items:center;gap:14px;max-width:100%}.period{flex-shrink:0}#filters{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;width:100%;padding-bottom:6px}#filters button{flex:0 0 auto;white-space:nowrap}.filterbar{display:block;min-width:0}.evidence{border-top:1px solid #384958;margin-top:14px;padding-top:8px}.evidence h3{font-size:12px}.timecontrols #dateRange{white-space:nowrap}@media(max-width:560px){.timecontrols{width:100%;overflow-x:auto;gap:10px}.timecontrols .period{width:auto}.timecontrols .period button{padding:10px;white-space:nowrap}.timecontrols #dateRange{font-size:10px}}

#filters button{border:1px solid #526270;background:#111c25;color:#9babb8;border-radius:5px}#filters button.active{border-color:#c4a2e9;background:#293747;color:#f2eafa;box-shadow:inset 0 -3px #b597d6}.timecontrols{flex-wrap:nowrap}.timecontrols .period{flex-wrap:nowrap}

#eventlist{display:flex;flex-direction:column;gap:8px}.notebook-category{border:1px solid #344655;border-radius:6px;background:#101b24;overflow:hidden}.notebook-toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:16px;text-align:left;border:0;border-radius:0;background:#14212c;font-weight:700}.notebook-toggle>span:last-child{font-size:12px;color:#a3b4c3;font-weight:400}.notebook-toggle[aria-expanded=true]{background:#263345;border-bottom:1px solid #435569}.notebook-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px}.notebook-body[hidden]{display:none}.notebook-body>p{grid-column:1/-1;color:#a9bac8}.notebook-body .record strong{margin-top:0}#eventDialog{width:min(880px,calc(100% - 32px));max-width:880px;max-height:88vh;padding:0;overflow:auto}#eventContent{padding:22px 28px}.dossier-toolbar{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;padding:14px 22px;background:#172633;border-bottom:1px solid #43586a}.dossier-toolbar button{font-size:24px;background:transparent;border:0}.dossier-category{font-size:12px;text-transform:uppercase;letter-spacing:1px}.dossier-place{font-size:17px;color:#d4dfe8}#eventContent .evidence h3{font-size:16px}#eventContent small{display:block;color:#9cb1c2;margin:9px 0}#eventContent .uncertainty,.dossier-review{font-size:12px;color:#a6b7c6}#eventContent .coordinate-source{font-size:12px}#detail{left:18px;bottom:18px;max-height:70%;width:330px}#detail p{margin:8px 0}@media(max-width:900px){.notebook-body{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.notebook-body{grid-template-columns:1fr}#eventContent{padding:18px}.notebook-toggle{padding:13px;font-size:12px}.notebook-toggle>span:last-child{font-size:10px}}

.mapwrap{overflow:visible}#detail{position:absolute;bottom:auto;max-width:none;max-height:320px;overflow:auto;transform:translate(-50%,-100%);z-index:10}#detail h2{font-size:17px}#detail .open-map-dossier{margin-top:12px;padding:8px 12px;font-size:12px}.filter-count{font-size:10px;opacity:.8}.mapbottom #coverage{line-height:1.6;max-width:78%}@media(max-width:560px){.mapbottom #coverage{max-width:100%}#detail{max-height:260px}}

#detail .map-position{margin-top:8px;padding-top:8px;border-top:1px solid #3e5262;color:#d3c5e7}
/* Desktop category row: all eleven controls fit without horizontal scrolling.
   Existing narrow-screen scrolling remains below 1000px; labels never wrap. */
@media(min-width:1000px){#filters{gap:3px;overflow-x:visible;flex-wrap:nowrap;justify-content:flex-start;padding-bottom:0}#filters button{flex:0 0 auto;white-space:nowrap;padding:9px 10px;font-size:12px;line-height:normal}.filter-count{font-size:10px}}



/* Match reference top spacing; keep compact hazard layer boxes. */
body{padding-top:0}.heading{margin:8px 0}.filterbar{margin-bottom:8px}.zoom button{display:flex;align-items:center;justify-content:center}

.shared-events{margin-top:8px;max-height:160px;overflow:auto}.shared-events button{display:block;width:100%;padding:6px;text-align:left;font-size:11px;margin-top:4px}

/* Match the Conflict map outer content frame without altering inner controls. */
body{max-width:1920px;margin:0 auto;padding-top:8px;padding-left:30px;padding-right:30px}
@media(max-width:1200px){body{padding-left:20px;padding-right:20px}}
@media(max-width:600px){body{padding-left:14px;padding-right:14px}}

/* Keep full-size category controls within the page as the taxonomy grows. */
#filters{flex-wrap:wrap;overflow-x:visible;gap:3px}
@media(min-width:1320px){#filters{flex-wrap:nowrap}}

/* Compact publisher buttons inside the existing References section only. */
#referencesBody{display:block}#referencesBody[hidden]{display:none}#referencesBody .reference-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#referencesBody .reference-buttons[hidden],#referenceLinks[hidden]{display:none}#referencesBody button{padding:8px 10px;font-size:13px;text-align:left;overflow-wrap:anywhere}#referencesBody button[aria-expanded=true]{background:#273342;border-color:#9e81bc}#referencesBody button span{color:#a3b4c3}#allReferenceSources{margin:8px 0}#referenceLinks{margin-top:12px;overflow-wrap:anywhere}#referenceLinks a{color:#caa4f2}#referenceLinks p{margin:8px 0}@media(max-width:700px){#referencesBody .reference-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}

#referencesBody .reference-years{display:flex;gap:6px;margin-bottom:10px}#referencesBody .reference-years button[aria-pressed=true]{background:#273342;border-color:#9e81bc}

.references-section{margin-top:16px}

/* Research year and transparent snapshot reporting. */
.records .years{margin-bottom:10px}
.notebook-scope{margin:0 0 20px;color:var(--muted);font-size:12px;line-height:1.5}
#frameCoverage{text-align:right;line-height:1.6}.research-report{margin-top:16px}.research-report details{border:1px solid #344655;border-radius:6px;background:#101b24;overflow:hidden}.research-report summary{padding:16px;cursor:pointer;font-weight:700;background:#14212c}.research-report summary span{float:right;font-size:12px;color:#a3b4c3;font-weight:400}#researchReportBody{padding:16px;color:#b8c7d3;line-height:1.6}#researchReportBody h3{color:#e2e6ec}#researchReportBody a{color:#caa4f2}.report-table-wrap{max-width:100%;overflow-x:auto}.report-table-wrap table{width:100%;border-collapse:collapse;font-size:12px;margin:12px 0 22px}.report-table-wrap table th,.report-table-wrap table td{padding:9px 12px;border-bottom:1px solid #344655;text-align:right;white-space:nowrap}.report-table-wrap table th:first-child,.report-table-wrap table td:first-child{text-align:left}.report-table-wrap table thead,.report-table-wrap table tfoot{background:#172633;color:#e4eaf0}.report-summary{display:flex;flex-wrap:wrap;gap:10px}.report-summary>span{border:1px solid #344655;padding:10px 14px;border-radius:5px}footer p{margin:0 0 7px}footer p:last-child{margin-bottom:0}#loadStatus{padding:14px;border:1px solid #dc8891;color:#ffd9de}#locateEvent{padding:10px 14px;margin:8px 0}
@media(max-width:1100px){.timecontrols{flex-wrap:wrap;justify-content:flex-end;gap:9px}.heading{align-items:flex-start}.mapbottom{flex-wrap:wrap}.mapbottom #coverage{max-width:100%}}
@media(max-width:560px){.timecontrols{justify-content:flex-start;overflow:visible}.timecontrols #dateRange{flex:1}.timecontrols .period{width:100%}.timecontrols .period button{flex:1}#frameCoverage{text-align:left}.research-report summary{font-size:12px}.research-report summary span{float:none;display:block;margin-top:5px}.report-table-wrap table th,.report-table-wrap table td{padding:8px}#researchReportBody{padding:12px}}

.report-table-wrap caption{text-align:left;color:#9db0c0;font-size:12px;padding:6px 0}.report-year+.report-year{border-top:1px solid #344655;margin-top:24px;padding-top:8px}.report-notes li{margin:7px 0}.report-downloads{border-top:1px solid #344655;padding-top:14px}

/* Shared footer from the World Conflict Observatory; keep its approved identity geometry. */
footer.world-footer{margin-top:38px;border-top:1px solid #293947;display:flex;justify-content:space-between;gap:20px;padding:28px 0 32px;font-size:14px;line-height:normal}
footer.world-footer a{font-size:14px;color:#ba94ef;font-weight:600;text-decoration:none}
footer.world-footer span{margin:0 12px;color:#536c82}
footer.world-footer p{font-size:12px;color:#f16e7d;letter-spacing:.3px;margin:8px 0 0}
footer.world-footer>div:last-child{text-align:right}
footer.world-footer>div:last-child p{font-size:12px;color:#7b91a4;margin:4px 0}
footer.world-footer>div:last-child a{font-size:12px}
footer.world-footer button{border:0;background:none;color:#a3b8c8;font-size:12px;padding:0}
@media(max-width:600px){footer.world-footer{flex-direction:column;gap:18px;padding:23px 0}footer.world-footer>div:last-child{text-align:left}}

/* Centre the advertising policy between the shared footer identity and methods. */
footer.world-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end}
footer.world-footer .footer-advertising-policy{align-self:end;justify-self:center;text-align:center;margin:0;color:#f16e7d;font:700 18px/1.5 Arial,Helvetica,sans-serif}
@media(max-width:800px){footer.world-footer{grid-template-columns:1fr;gap:18px}footer.world-footer>div:last-child{grid-row:2;text-align:left}footer.world-footer .footer-advertising-policy{grid-row:3;width:100%;margin-top:4px}}
/* Explicit pin counts need wrapping before controls overflow at desktop widths. */
#filters{flex-wrap:wrap}

@media(max-width:600px){footer.world-footer .footer-advertising-policy{font-size:16px}}
