/* Round 6: world-only layout; never changes source counts or reference positions. */
body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .explorer-grid{display:flex!important;flex-direction:column;gap:12px!important}
body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .explorer-grid>.map-canvas{order:0;width:100%!important}
body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .country-panel{order:1;width:100%!important;max-width:none!important;padding:16px!important;border:1px solid #3c4453;background:#0b1a2a!important}
body[data-design][data-workspace].world-page #country-list{height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important}
body[data-design][data-workspace].world-page #country-list .country-rows{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:8px;align-items:stretch}
body[data-design][data-workspace].world-page #country-list .country-row{height:auto!important;min-height:76px!important;max-height:none!important;padding:10px 12px!important;gap:12px!important;align-items:center!important;border:1px solid #3c4453;border-radius:8px;background:#0b1a2a!important;font-size:15px!important;line-height:1.4!important;white-space:normal!important}
body[data-design][data-workspace].world-page #country-list .country-row[aria-pressed="true"]{background:#1a2a3e!important;border-color:#1467df!important;box-shadow:inset 3px 0 #1467df}
body[data-design][data-workspace].world-page #country-list .country-row-name{min-width:0;align-items:center;flex:1 1 auto}
body[data-design][data-workspace].world-page #country-list .country-row-name>span:last-child{word-break:normal;overflow-wrap:anywhere;line-height:1.4}
body[data-design][data-workspace].world-page #country-list .country-source-label{font-size:14px!important;line-height:1.4!important;display:block;margin-top:3px}
body[data-design][data-workspace].world-page #country-list .country-row-count{font-size:15px!important;flex:0 0 auto}
body[data-design][data-workspace].world-page .country-unlisted{margin-top:12px}
body[data-design][data-workspace].world-page .country-unlisted>summary{padding:12px;font-size:15px!important}
body[data-design][data-workspace].world-page #country-more{margin-block:12px;font-size:15px!important}
body[data-design][data-workspace].world-page .world-map-stage{height:clamp(320px,38vw,590px)!important;min-height:0!important;background:#051526!important}
body[data-design][data-workspace].world-page #global-map{height:100%!important;background:#051526!important}
body[data-design][data-workspace].world-page .leaflet-control-attribution{max-width:calc(100% - 16px)!important;box-sizing:border-box;white-space:normal!important;overflow:visible!important;text-align:right;font-size:14px!important;line-height:1.5!important;padding:4px 8px!important;background:#0b1a2a!important;color:#d9e8ff!important;margin:4px!important}
body[data-design][data-workspace].world-page .leaflet-control-attribution a{font-size:14px!important;line-height:inherit!important;color:#9cc5ff!important}
body[data-design][data-workspace].world-page .leaflet-bottom.leaflet-right{max-width:100%!important}
body[data-design][data-workspace].world-page .world-reference-marker>span:first-child{font-size:15px!important;min-width:42px!important;min-height:42px!important;line-height:1.2!important;background:#1a2a3e!important;color:#fff!important;border-color:#9cc5ff!important}
body[data-design][data-workspace].world-page .world-reference-marker.is-group>span:first-child{display:flex!important;flex-direction:column;min-width:50px!important;min-height:50px!important}
body[data-design][data-workspace].world-page .world-reference-marker small{font-size:14px!important;line-height:1.1!important}
body[data-design][data-workspace].world-page .world-reference-marker.is-samoa::before,
body[data-design][data-workspace].world-page .world-reference-marker.is-samoa::after{display:none!important}
body[data-design][data-workspace].world-page .world-reference-marker.is-samoa>span:first-child{transform:none!important}
body[data-design][data-workspace].world-page .world-reference-marker.is-samoa .samoa-map-label{left:48px!important;max-width:130px!important;font-size:14px!important;line-height:1.35!important;background:#0b1a2a!important;color:#fff!important;white-space:normal!important}
body[data-design][data-workspace].world-page #country-list .loading-state,
body[data-design][data-workspace].world-page #country-list .loading-skeleton{background-color:#1a2a3e!important;color:#d9e8ff!important;border-color:#3c4453!important;box-shadow:none!important}
body[data-design][data-workspace].world-page #country-list .loading-skeleton{background-image:linear-gradient(90deg,#0b1a2a,#1a2a3e,#0b1a2a)!important}
body[data-design][data-workspace].world-page .map-legend,
body[data-design][data-workspace].world-page .map-legend span,
body[data-design][data-workspace].world-page .world-reference-explanation{font-size:14px!important;line-height:1.5!important}
body[data-design][data-workspace].world-page .map-legend .swatch{width:18px!important;height:18px!important;min-width:18px!important;display:inline-block!important}
body[data-design][data-workspace].world-page .world-source-counts :is(strong,b){font-size:22px!important;font-weight:700!important;line-height:1.25!important}
body[data-design][data-workspace].world-page .world-source-counts span{font-size:15px!important;line-height:1.5!important}
@media(max-width:600px){body[data-design][data-workspace].world-page .world-map-stage{height:340px!important}body[data-design][data-workspace].world-page #country-list .country-rows{grid-template-columns:1fr}body[data-design][data-workspace].world-page .world-reference-marker.is-samoa .samoa-map-label{max-width:105px!important}}
body[data-design][data-workspace].world-page .leaflet-bottom.leaflet-right{width:max-content}
body[data-design][data-workspace].world-page #country-list .loading-skeleton::before,
body[data-design][data-workspace].world-page #country-list .loading-skeleton::after{background:linear-gradient(90deg,#0b1a2a,#1a2a3e,#0b1a2a)!important}
/* R6 production follow-up: ID-scoped rules outrank legacy world/Leaflet rules.
   A max-content parent plus percentage child width caused Japanese attribution
   to wrap mid-word. Give the control its natural width within the map instead. */
body[data-design][data-workspace].world-page #global-map .leaflet-bottom.leaflet-right{width:auto!important;max-width:calc(100% - 16px)!important;right:8px!important;bottom:4px!important}
body[data-design][data-workspace].world-page #global-map .leaflet-control-attribution{width:max-content!important;max-width:100%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;overflow:visible!important;margin:0!important;padding:5px 8px!important;font-size:15px!important;line-height:1.35!important}
body[data-design][data-workspace].world-page #global-map .leaflet-control-attribution a{font-size:inherit!important;white-space:nowrap!important;word-break:keep-all!important;display:inline!important}
body[data-design][data-workspace].world-page #global-map .world-reference-marker>span:first-child{font-size:18px!important}
body[data-design][data-workspace].world-page #global-map .world-reference-marker small{font-size:16px!important;line-height:1.2!important}
body[data-design][data-workspace].world-page #world-legend-group,
body[data-design][data-workspace].world-page #world-legend-group span{font-size:16px!important;line-height:1.5!important}
body[data-design][data-workspace].world-page #world-legend-group .swatch{width:24px!important;height:24px!important;min-width:24px!important;border:1px solid #9cc5ff!important}
body[data-design][data-workspace].world-page #panel-world-map .country-list-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
body[data-design][data-workspace].world-page #world-reset{display:block!important;width:100%!important;min-height:52px!important;padding:12px 20px!important;border-radius:8px!important;text-align:center!important;background:#1467df!important;color:#fff!important;font-size:18px!important;font-weight:700!important}
/* Group label is one readable unit, not a tiny two-line country-code badge.
   Dimensions match Leaflet divIcon/iconAnchor in world-map-references.js. */
body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group{width:112px!important;height:52px!important}
body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group>span:first-child{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:112px!important;height:52px!important;min-width:112px!important;min-height:52px!important;box-sizing:border-box!important;white-space:nowrap!important;word-break:keep-all!important;border-radius:26px!important;padding:8px!important;font-size:20px!important;line-height:1.2!important}
body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group>span:first-child small{display:inline!important;position:static!important;font-size:20px!important;line-height:inherit!important;white-space:nowrap!important;margin:0!important}

.world-page .world-category-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0;color:#eef5f7;font-size:14px}
.world-page .world-category-legend>span,.world-page .world-category-pins{display:inline-flex;align-items:center;justify-content:center;gap:3px}
.world-page :is(.world-category-legend,.world-category-pins) i{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid #fff;border-radius:50%;font-size:14px;font-weight:700;font-style:normal;color:#03111e}
.world-page .world-category-mlm{background:#6242b8;color:#fff!important}.world-page .world-category-investment{background:#e08e21}.world-page .world-category-sales{background:#f1be6e}.world-page .world-category-other{background:#2b65b4;color:#fff!important}
.world-page .world-category-marker{display:flex!important;align-items:center;justify-content:center;background:transparent;border:0}.world-page .world-category-pins{flex-wrap:wrap;padding:3px;background:#0b1a2a;border:1px solid #8cb8ff;border-radius:8px}.world-page .world-category-pins small{flex-basis:100%;text-align:center;color:#fff;font-size:14px;line-height:1.2}.world-page .world-category-chooser{max-height:240px;overflow:auto}.world-page .world-category-chooser button{display:block;width:100%;min-height:44px;text-align:left}

.world-page .world-category-legend{margin-inline:12px;padding:4px 0;font-size:16px;line-height:1.5}
.world-page .world-reference-categories{position:absolute;bottom:calc(100% - 1px);left:50%;transform:translateX(-50%);width:max-content;flex-wrap:nowrap}
html body[data-design].world-page #global-map .leaflet-control-zoom a{width:44px!important;height:44px!important;line-height:44px!important;background:#1467df!important;color:#fff!important;border-color:#8cb8ff!important}
html body[data-design].world-page #global-map .leaflet-control-zoom a.leaflet-disabled{background:#1a2a3e!important;color:#a9bbcb!important}
.world-page #global-map :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#0b1a2a;color:#eef5f7}
.world-page #global-map .leaflet-popup-content{margin:16px;min-width:220px;max-width:min(300px,70vw)}
.world-page #global-map .leaflet-popup-close-button{width:44px;height:44px;line-height:44px;font-size:26px;color:#eef5f7}
.world-page #global-map :is(.world-category-chooser,.world-reference-chooser){max-height:none;overflow:visible;font-size:14px;line-height:1.5;color:#eef5f7}
.world-page #global-map :is(.world-category-chooser,.world-reference-chooser)>p{margin:0 28px 10px 0}
.world-page #global-map :is(.world-category-choices,.world-reference-choices){max-height:min(220px,35vh,var(--world-chooser-rows,220px));overflow:auto;overscroll-behavior:contain}
.world-page #global-map :is(.world-category-chooser,.world-reference-chooser) button{background:#1a2a3e;color:#eef5f7;border-color:#8cb8ff;font-size:14px}
.world-page #global-map .world-reference-choices small{display:block;font-size:14px;line-height:1.5}

/* The count uses the same fill as the map key, with a number for small countries. */
.world-page .world-count-band-1 { --count-fill:#e1f0f4; --count-ink:#03111e; }
.world-page .world-count-band-2 { --count-fill:#75cdd3; --count-ink:#03111e; }
.world-page .world-count-band-3 { --count-fill:#4b92ea; --count-ink:#03111e; }
.world-page .world-count-band-4 { --count-fill:#8557d4; --count-ink:#fff; }
.world-page .world-count-band-5 { --count-fill:#b33383; --count-ink:#fff; }
html body[data-design].world-page #global-map .world-reference-marker:is(.is-counted,.is-samoa)>span:first-child {
  box-sizing:border-box;
  gap:5px;
  width:100%;
  padding:4px 7px;
  border-radius:8px;
  white-space:nowrap;
}
html body[data-design].world-page #global-map .world-reference-marker .world-count-chip {
  padding:2px 5px;
  border:1px solid #8cb8ff;
  border-radius:4px;
  background:var(--count-fill);
  color:var(--count-ink);
  font-size:15px;
  font-variant-numeric:tabular-nums;
}
html body[data-design].world-page #global-map .world-reference-marker.is-selected>span:first-child,
html body[data-design].world-page #global-map .world-category-marker.is-selected .world-category-pins {
  border-color:#ffdf88!important;
  box-shadow:0 0 0 2px #ffdf88;
}
.world-page #global-map :is(.world-reference-marker,.world-category-marker) .world-reference-anchor {
  position:absolute;
  left:var(--anchor-x);
  top:var(--anchor-y);
  width:0;
  height:0;
  pointer-events:none;
  z-index:-1;
}
.world-page #global-map .world-reference-anchor::before {
  content:"";
  position:absolute;
  width:var(--anchor-line);
  height:1px;
  background:#a5c3e2;
  transform-origin:0 50%;
  transform:rotate(var(--anchor-angle));
}
.world-page #global-map .world-reference-anchor::after {
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  border:1px solid #eef5f7;
  border-radius:50%;
  background:#1467df;
  transform:translate(-50%,-50%);
}
.world-page #global-map .leaflet-tooltip {
  color:#eef5f7;
  background:#0b1a2a;
  border-color:#38536a;
  font-size:14px;
}
html body[data-design].world-page #world-legend-group .swatch {
  width:32px!important;
  height:24px!important;
  min-width:32px!important;
}
html body[data-design].world-page #world-map-title { scroll-margin-top:clamp(88px,calc(var(--shared-header-height,76px) + 20px),144px); }
html body[data-design].world-page :is(.country-count-note,#country-results,#world-map-position,#world-status) {
  font-size:14px!important;
  line-height:1.5;
}

html body[data-design].world-page #country-list .country-rows {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));
}
html body[data-design].world-page #country-list .country-row {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"name name" "count count";
  align-content:center;
  gap:4px 8px!important;
}
html body[data-design].world-page #country-list .country-row[aria-pressed="true"]::before { content:none; }
html body[data-design].world-page #country-list .country-row-name {
  grid-area:name;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:8px;
}
html body[data-design].world-page #country-list .country-row .country-code {
  min-width:2.5em;
  padding:2px 5px;
  border:1px solid #8cb8ff;
  color:#dae9fc;
  font-size:15px!important;
  line-height:1.25;
}
html body[data-design].world-page #country-list .country-row .country-name {
  font-size:16px!important;
  line-height:1.45;
  overflow-wrap:normal;
  word-break:keep-all;
}
html body[data-design].world-page #country-list .country-row-count {
  grid-area:count;
  justify-self:start;
  padding:1px 6px;
  border:1px solid #38536a;
  border-radius:4px;
  color:var(--count-ink,#d9e8f5);
  background:var(--count-fill,#0b1a2a);
  font-size:15px!important;
  line-height:1.4;
}

/* Size the map card to the geographic view so both can use the width. */
@media(min-width:1001px){
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .explorer-grid>.map-canvas {
  align-self:center;
  box-sizing:border-box;
  max-width:1680px!important;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .world-map-stage {
  height:auto!important;
  aspect-ratio:2.65;
  max-height:calc(100svh - 382px);
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map #global-map {
  position:absolute;
  inset:0;
 }
}
html body[data-design].world-page #panel-world-map .world-map-legends {
 display:flex;
 flex-wrap:wrap;
 align-items:flex-start;
 gap:8px 18px;
 margin:4px 12px 10px;
 padding:8px 10px;
 border:1px solid #365067;
 border-radius:8px;
 background:#0b1a2a;
}
html body[data-design].world-page #panel-world-map .world-legend-section {
 min-width:0;
 flex:1 1 auto;
}
html body[data-design].world-page #panel-world-map .world-map-legends .world-color-key {
 margin:0 0 4px!important;
 font-size:14px!important;
}
html body[data-design].world-page #panel-world-map .world-map-legends :is(#world-legend-group,.world-category-legend) {
 margin:0!important;
 padding:0!important;
 gap:4px 12px!important;
}
html body[data-design].world-page #panel-world-map .world-map-legends :is(#world-legend-group,.world-category-legend) span {
 font-size:14px!important;
 line-height:1.5!important;
}
html body[data-design].world-page #panel-world-map .world-map-legends .swatch {
 width:26px!important;
 min-width:26px!important;
 height:20px!important;
}
html body[data-design].world-page #panel-world-map :is(.world-reference-explanation,.map-location-note p,.map-location-note a,#world-map-position) {
 font-size:14px!important;
 line-height:1.5!important;
}

/* Keep both keys in document flow above the map and every entry readable. */
html body[data-design].world-page #panel-world-map .world-map-legends {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:6px;
}
html body[data-design].world-page #panel-world-map .world-legend-section {
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:4px 12px;
}
html body[data-design].world-page #panel-world-map .world-legend-section .world-color-key {
 margin:0!important;
}
html body[data-design].world-page #panel-world-map #world-category-legend-status {
 margin:0;
 font-size:14px!important;
 line-height:1.5;
 color:#c8d6e5;
}
html body[data-design].world-page #panel-world-map .world-category-legend>[data-no-pin],
html body[data-design].world-page #panel-world-map .world-category-legend[data-pins-pending]>[data-world-category] {
 display:none!important;
}
html body[data-design].world-page #panel-world-map .world-map-legends .swatch {
 width:27px!important;
 min-width:27px!important;
}
html body[data-design].world-page #panel-world-map .world-map-legends #world-legend-group .swatch {
 background:var(--legend-fill)!important;
 border:1px solid #8fa7bf!important;
}
.world-page .world-map-legends .swatch.suppressed { --legend-fill:#1a2a3e; }
.world-page .world-map-legends .swatch.few { --legend-fill:#e1f0f4; }
.world-page .world-map-legends .swatch.low { --legend-fill:#75cdd3; }
.world-page .world-map-legends .swatch.medium { --legend-fill:#4b92ea; }
.world-page .world-map-legends .swatch.high { --legend-fill:#8557d4; }
.world-page .world-map-legends .swatch.very-high { --legend-fill:#b33383; }
html body[data-design].world-page #panel-world-map .world-category-legend i {
 width:24px;
 height:24px;
 font-size:16px;
}
html body[data-design].world-page #global-map .world-category-pins i {
 width:30px;
 height:30px;
 border-width:2px;
 font-size:18px;
}
html body[data-design].world-page #global-map .world-category-pins :is(.world-category-mlm,.world-category-other,.world-category-sales) {
 width:34px;
 height:34px;
 font-size:20px;
 box-shadow:0 1px 5px #03111e;
}
.world-page :is(.world-category-pins,.world-category-legend) i {
 position:relative;
 border-radius:50% 50% 50% 5px;
 line-height:1;
}
.world-page .world-category-region {
 padding:0 4px;
 border:1px solid #6b8aab;
 border-radius:4px;
 color:#dceafa;
 font-size:14px;
 line-height:1.25;
}
html body[data-design].world-page #global-map .world-reference-marker .world-reference-badge {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:5px;
 white-space:nowrap;
 font-size:18px!important;
 line-height:1.1;
}
html body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group.has-cluster-preview {
 width:127px!important;
 height:47px!important;
}
html body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group.has-cluster-preview.has-overflow { width:153px!important; }
html body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group.has-cluster-preview>span:first-child {
 width:100%!important;
 height:100%!important;
 min-width:0!important;
 min-height:0!important;
 flex-direction:column!important;
 gap:1px!important;
 border-radius:8px!important;
 padding:2px 5px!important;
}
html body[data-design][data-workspace].world-page #global-map .world-reference-marker.is-group.has-cluster-preview :is(.world-reference-badge,.world-reference-badge small,.world-cluster-preview) {
 font-size:14px!important;
 line-height:1.25!important;
}
.world-page .world-cluster-icons {
 display:inline-flex;
 gap:2px;
 align-items:center;
 vertical-align:middle;
}
.world-page .world-cluster-icons i {
 display:inline-grid;
 place-items:center;
 width:18px;
 height:18px;
 border:1px solid #edeff5;
 border-radius:50%;
 color:#03111e;
 font-size:14px;
 font-weight:700;
 font-style:normal;
 line-height:1;
}
html body[data-design].world-page #world-cluster-summary {
 display:flex;
 align-items:center;
 gap:9px;
 padding:4px 10px;
 min-height:37px;
 color:#e1eafa;
 font-size:14px!important;
 line-height:1.45;
}
.world-page .world-cluster-summary>strong { white-space:nowrap; }
.world-page .world-cluster-summary ul {
 display:flex;
 min-width:0;
 gap:12px;
 margin:0;
 padding:2px 3px 3px;
 list-style:none;
 overflow-x:auto;
 scrollbar-width:thin;
}
.world-page .world-cluster-summary li { white-space:nowrap; }
.world-page .world-cluster-summary li .world-cluster-icons { margin-inline-start:4px; }
html body[data-design].world-page #global-map .world-reference-marker.is-seychelles .world-reference-anchor::after {
 width:17px;
 height:17px;
 border:2px solid #ffdf88;
 box-shadow:0 0 0 4px #0b1a2a;
 background:var(--count-fill,#1a2a3e);
}
html body[data-design].world-page #panel-world-map .world-map-view {
 position:relative;
 display:grid;
 min-width:0;
 gap:10px;
}
html body[data-design].world-page #panel-world-map .world-map-view:has(.country-detail:not([hidden])) {
 grid-template-columns:minmax(0,1fr) minmax(270px,320px);
}
html body[data-design].world-page #panel-world-map .world-map-view .country-detail {
 align-content:start;
 display:grid;
 align-items:start;
 justify-content:normal;
 gap:6px;
 min-width:0;
 max-height:100%;
 overflow:auto;
 box-sizing:border-box;
 margin:0;
 padding:11px 12px;
 background:#0b1a2a;
 border:1px solid #365067;
}
html body[data-design].world-page #panel-world-map .world-map-view .country-detail[hidden] { display:none!important; }
html body[data-design].world-page #panel-world-map .country-detail :is(h3,p,dl,dd,ul) { margin:0; }
html body[data-design].world-page #panel-world-map .country-detail :is(p,a,dt,li) {
 font-size:14px!important;
 line-height:1.5;
}
html body[data-design].world-page #panel-world-map .country-detail :is(dt,.world-country-detail-total) {
 color:#f7fbff;
 font-weight:700;
}
html body[data-design].world-page #panel-world-map .country-detail .world-country-breakdown ul {
 list-style:none;
 padding:0;
}
html body[data-design].world-page #panel-world-map .country-detail .world-country-breakdown li {
 display:flex;
 justify-content:space-between;
 align-items:baseline;
 gap:6px;
}
html body[data-design].world-page #panel-world-map .country-detail .world-country-breakdown strong { white-space:nowrap; }
html body[data-design].world-page #panel-world-map .country-detail .world-country-companies { padding:0 0 0 1.3em; }
html body[data-design].world-page #panel-world-map .country-detail .world-country-companies a { white-space:normal; }
html body[data-design].world-page #panel-world-map .world-country-detail-links {
 display:grid;
 justify-items:start;
 gap:3px;
}
@media(max-width:1000px){
 html body[data-design].world-page #panel-world-map .world-map-view:has(.country-detail:not([hidden])) {
  grid-template-columns:minmax(0,1fr);
 }
}

html body[data-design].world-page #panel-world-map .world-map-view:not(:has(.country-detail:not([hidden]))) .map-stage {
 grid-column:1/-1;
}
html body[data-design].world-page #global-map .world-reference-marker.is-seychelles .world-reference-anchor { z-index:0; }

html body[data-design].world-page #panel-world-map .world-map-view:has(.country-detail:not([hidden])) {
 align-items:start;
}
html body[data-design].world-page #panel-world-map .country-detail .world-country-companies li {
 margin:0 0 3px;
}
html body[data-design].world-page #panel-world-map .country-detail .world-country-companies li a,
html body[data-design].world-page #panel-world-map .world-country-detail-links a {
 display:inline!important;
 min-height:0!important;
 padding:0!important;
}

html body[data-design].world-page #global-map .world-reference-marker.is-seychelles>span:first-child {
 position:relative;
 z-index:1;
 width:100%!important;
 border-radius:8px;
}
html body[data-design].world-page #global-map .world-reference-marker.is-seychelles .world-reference-badge { font-size:16px!important; }
.world-page #global-map .leaflet-tooltip.world-geographic-label {
 border:0;
 background:#0b1a2aeb;
 color:#f7fbff;
 padding:3px 6px;
 font-weight:700;
 box-shadow:none;
}
.world-page #global-map .leaflet-tooltip.world-geographic-label::before { display:none; }
@media(min-width:1001px){
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .world-map-view:has(>.world-map-stage[data-world-focus="seychelles"]):has(>.country-detail:not([hidden])) {
  grid-template-columns:minmax(0,3fr) minmax(330px,2fr);
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .world-map-stage[data-world-focus="seychelles"] {
  width:100%;
  aspect-ratio:2.1;
  max-height:440px;
 }
}
@media(min-width:1100px){
 html body[data-design].world-page #panel-world-map .world-map-stage[data-world-focus="seychelles"] ~ .country-detail {
  grid-template-columns:minmax(0,2fr) minmax(0,3fr);
  column-gap:18px;
  padding:18px;
 }
 .world-page .world-map-stage[data-world-focus="seychelles"] ~ .country-detail > :is(h3,.world-country-detail-total,.world-country-detail-links) {
  grid-column:1/-1;
 }
 .world-page .world-map-stage[data-world-focus="seychelles"] ~ .country-detail .world-country-records {
  border-inline-start:1px solid #365067;
  padding-inline-start:16px;
 }
}

html body[data-design].world-page #world-map-placeholder {
 z-index:2;
 gap:8px;
 color:#eef5f7;
 font-size:15px!important;
}
html body[data-design].world-page #world-map-placeholder:is([data-map-state="counts"],[data-map-state="counts-error"],[data-map-state="counts-stale"]) {
 inset:12px auto auto 50%;
 width:max-content;
 max-width:calc(100% - 110px);
 transform:translateX(-50%);
 padding:0;
 background:transparent!important;
 pointer-events:none;
}
.world-page .world-map-status-card {
 display:flex;
 align-items:center;
 gap:9px;
 padding:9px 12px;
 border:1px solid #5f85ae;
 border-radius:8px;
 background:#0b1a2a;
}
.world-page .world-map-status-card i {
 width:18px;
 height:18px;
 flex:none;
 border:2px solid #425e7b;
 border-top-color:#a2d4ff;
 border-radius:50%;
 animation:world-map-spinner .8s linear infinite;
}
@keyframes world-map-spinner { to { transform:rotate(1turn); } }
@media(prefers-reduced-motion:reduce){
 .world-page .world-map-status-card i { animation:none; }
}

.world-page #global-map .world-reference-marker:not(.is-seychelles) .world-reference-anchor[data-anchor-country]::before {
 height:2px;
 background:repeating-linear-gradient(90deg,#c6e3ff 0 4px,transparent 4px 7px);
}
.world-page #global-map .world-reference-marker:not(.is-seychelles) .world-reference-anchor[data-anchor-country]::after {
 width:7px;
 height:7px;
 background:#9cc5ff;
}
html body[data-design].world-page #panel-world-map .world-country-facts {
 display:grid;
 gap:6px;
 min-width:0;
}
html body[data-design].world-page #panel-world-map .world-country-source-split {
 color:#dbeafa;
 font-weight:650;
}
.world-page .world-seychelles-inset {
 display:grid;
 gap:2px;
 justify-items:start;
 margin:2px 0 0;
 max-width:240px;
}
.world-page .world-seychelles-inset svg {
 display:block;
 width:100%;
 max-width:240px;
 border:1px solid #365067;
 border-radius:6px;
 background:#051526;
}
.world-page .world-seychelles-inset .world-island-outline {
 fill:#314d64;
 fill-rule:evenodd;
 stroke:#a9d0ef;
 stroke-width:1.1px;
 vector-effect:non-scaling-stroke;
}
.world-page .world-seychelles-inset circle { fill:#ffe198;stroke:#0b1a2a;stroke-width:1.2px; }
.world-page .world-seychelles-inset text { fill:#f5faff;font-size:14px;font-weight:700; }
.world-page .world-seychelles-inset figcaption { color:#dbeafa;font-size:14px;line-height:1.4; }
html body[data-design].world-page #world-map-placeholder[data-map-state="geometry"] {
 padding:16px;
 background-color:#051526!important;
 background-image:linear-gradient(90deg,#203c5640 1px,transparent 1px),linear-gradient(#203c5640 1px,transparent 1px)!important;
 background-size:64px 64px!important;
}

html body[data-design].world-page #world-map-placeholder:is([data-map-state$="error"],[data-map-state="counts-stale"]) .world-map-status-card {
 flex-wrap:wrap;
 justify-content:center;
}
.world-page #world-map-placeholder:is([data-map-state$="error"],[data-map-state="counts-stale"]) .world-map-status-card i { display:none; }
html body[data-design].world-page #retry-world-map {
 pointer-events:auto;
 min-height:40px;
 border:1px solid #83b5ff;
 border-radius:6px;
 padding:4px 8px;
 background:#1467df;
 color:#fff;
 font-size:14px!important;
 text-decoration:none;
}
.world-page .world-country-pending { margin:0 0 6px; padding:4px 12px; font-size:14px; color:#dceafa; }

/* Place the desktop country list after the map and its report action. */
@media(min-width:1001px){
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .explorer-grid {
  --world-map-ratio:2.48;
  --world-map-max-height:max(300px,calc(100svh - 490px));
  max-width:1680px;
  margin-inline:auto;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .map-canvas:has(.world-map-stage[data-world-focus="world"]) {
  max-width:min(100%,calc(var(--world-map-max-height) * var(--world-map-ratio) + 2px))!important;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .country-panel {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:10px 16px;
  min-width:0;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map #world-countries {
  margin:4px 0 0;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #main #panel-world-map .country-list-toolbar {
  grid-template-columns:max-content minmax(0,1fr);
  inline-size:min(30rem,40vw);
  padding:0;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map #country-list {
  grid-column:1/-1;
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map #country-list .country-rows {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));
 }
 html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .world-map-stage[data-world-focus="world"] {
  aspect-ratio:var(--world-map-ratio);
  max-height:var(--world-map-max-height);
 }
 @layer site-reading {
  html body[data-design][data-workspace].world-page:not([data-world-search-embed]) #panel-world-map .world-map-stage[data-world-focus="world"] {
   max-block-size:var(--world-map-max-height)!important;
  }
 }
 html body[data-design].world-page #panel-world-map .world-map-legends {
  margin:4px 10px 8px;
  padding:6px 8px;
 }
}
html body[data-design].world-page #world-map-inset {
 position:absolute;
 inset:auto 9px 37px auto;
 z-index:3;
 width:clamp(182px,30%,275px);
 padding:6px;
 border:1px solid #8eb1d4;
 border-radius:8px;
 background:#0b1a2a;
 box-shadow:0 0 0 2px #051526;
 pointer-events:none;
}
.world-page #world-map-inset .world-seychelles-inset { max-width:none;margin:0;gap:4px; }
.world-page #world-map-inset .world-seychelles-inset svg { max-width:none; }
.world-page #world-map-inset figcaption { width:100%;font-size:14px;font-weight:700;text-align:center; }
.world-page #world-map-inset .world-island-outline { fill:#527597;stroke:#e6f3ff;stroke-width:1.35px; }
html body[data-design].world-page #panel-world-map :is(.country-source-label,.world-reference-explanation) { font-size:14px!important; }

.world-page #country-list[data-snapshot] .country-row { text-decoration:none; }

/* The local SVG stays visible without a boundary file, Leaflet or the controller. */
html body[data-design].world-page .world-map-stage[data-world-focus="seychelles"] #world-map-placeholder:is([data-map-state="geometry"],[data-map-state="map-error"]) {
 align-items:flex-start;
 justify-content:flex-start;
}
html body[data-design].world-page .world-map-stage[data-world-focus="seychelles"]:has(#world-map-placeholder[data-map-state="map-error"]) #world-map-inset {
 inset:auto auto 14px 50%;
 transform:translateX(-50%);
}
