/* The preview contains no geography or records. It only appears during a read. */
html body #map-placeholder .map-loading-preview,
html body #world-map-placeholder .map-loading-preview {
  position: relative;
  display: block;
  inline-size: min(100%, 25rem);
  block-size: clamp(100px, 18vh, 160px);
  margin: 0 auto 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #44617f;
  border-radius: 8px;
  background-color: #0b1a2a;
  background-image: linear-gradient(#38536a50 1px, transparent 1px), linear-gradient(90deg, #38536a50 1px, transparent 1px);
  background-size: 26px 26px;
}
html body :is(#map-placeholder,#world-map-placeholder) .map-loading-preview i {
  position: absolute;
  display: block;
  border: 1px solid #4a6987;
  border-radius: 5px;
  background: #2a4663;
}
html body :is(#map-placeholder,#world-map-placeholder) .map-loading-preview i:first-child {
  inset: 10px auto auto 10px;
  inline-size: 21px;
  block-size: 44px;
  background: linear-gradient(#345574 48%, #0b1a2a 48% 52%, #345574 52%);
}
html body :is(#map-placeholder,#world-map-placeholder) .map-loading-preview i:nth-child(2) {
  inset: 24% auto auto 35%;
  inline-size: 36%;
  block-size: 12px;
}
html body :is(#map-placeholder,#world-map-placeholder) .map-loading-preview i:nth-child(3) {
  inset: auto 10px 10px auto;
  inline-size: 23%;
  block-size: 9px;
}
.map-loading-preview::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(105deg, transparent 30%, #9ecaff24 50%, transparent 70%);
  transform: translateX(-100%);
  animation: map-pending-sweep 2.3s ease-in-out infinite;
}
@keyframes map-pending-sweep {
  to { transform: translateX(100%); }
}
html body #map-placeholder .map-loading-state {
  inline-size: min(100%, 28rem);
}
html body #map-placeholder .map-loading-state p,
html body #world-map-placeholder[data-map-state="geometry"] .world-map-status-card p {
  font-size: 16px;
  line-height: 1.45;
}
html body[data-design].world-page #world-map-placeholder[data-map-state="geometry"] {
  flex-direction: column;
}
html body[data-design].world-page #world-map-placeholder .map-loading-preview {
  inline-size: min(92%, 25rem);
  margin: 0;
}
html body[data-design].world-page #world-map-placeholder:not([data-map-state="geometry"]) .map-loading-preview,
html body[data-design].world-page .map-canvas:has(#world-map-placeholder[data-map-state="geometry"]) #world-cluster-summary {
  display: none;
}

/* Neutral row shapes use the same treatment for listings, search and updates. */
#public-report-status[data-load-state="loading"]::after,
#company-content > .company-results-loading::after,
#company-directory-results > .r10-loading-track:not([hidden]),
[data-company-directory-startup] > .r10-loading-track:not([hidden]),
#search-hub-loading > .r10-loading-track:not([hidden]) {
  display: block;
  inline-size: 100%;
  max-inline-size: 26rem;
  block-size: 66px;
  margin: 8px 0;
  border: 1px solid #385775;
  border-radius: 7px;
  background:
    linear-gradient(#416181, #416181) 12px 12px / 62% 9px no-repeat,
    linear-gradient(#31506e, #31506e) 12px 30px / 78% 7px no-repeat,
    linear-gradient(#31506e, #31506e) 12px 47px / 48% 7px no-repeat,
    #132941;
  animation: none;
}
html body #public-report-status[data-load-state="loading"]::after,
html body #company-content > .company-results-loading::after {
  content: '';
  font-size: 0;
}
#company-directory-results > .r10-loading-track::after,
[data-company-directory-startup] > .r10-loading-track::after,
#search-hub-loading > .r10-loading-track::after {
  inset-block-start: auto;
  block-size: 2px;
}
html body #dashboard-records .feed-loading-lines,
html body.world-page #public-report-list > .loading-lines {
  display: grid;
  inline-size: min(100%, 26rem);
  gap: 9px;
  margin: 6px 0;
  padding: 12px;
  border: 1px solid #385775;
  border-radius: 7px;
  background: #132941;
}
html body #dashboard-records .feed-loading-lines span,
html body.world-page #public-report-list > .loading-lines i {
  display: block;
  block-size: 8px;
  border-radius: 4px;
  background: #416181;
}
html body #dashboard-records .feed-loading-lines span:not(:first-child),
html body.world-page #public-report-list > .loading-lines i:not(:first-child) {
  background: #31506e;
}
@media (prefers-reduced-motion: reduce) {
  .map-loading-preview::after { animation: none; }
}
