/* Match each pending surface to the space its content will occupy. The tile
   supplies the motion itself, including a still pattern under reduced motion. */
:root { --loading-dots: url('/assets/loading-dots.svg#pulse'); }
@media (prefers-reduced-motion: reduce) {
  :root { --loading-dots: url('/assets/loading-dots.svg'); }
}
.loading-shape, .loading-story::before, .loading-story::after,
img[data-loading-image] {
  background-image: var(--loading-dots);
  background-repeat: repeat;
  background-position: var(--dots-x, 0) var(--dots-y, 0);
}
:where(.story-grid, .quote-group, .facility-list) > :nth-child(even) { --dots-x: -376px; }
:where(.story-grid, .quote-group, .facility-list) > :nth-child(3n) { --dots-y: -216px; }
:where(.story-grid, .quote-group, .facility-list) > :nth-child(4n) { --dots-y: -504px; }
.loading-shape { display: block; width: 100%; position: relative; }
.loading-lines, .loading-story::after {
  height: 72px;
  mask: linear-gradient(#000 0 0) 0 0 / 36% 9px,
        linear-gradient(#000 0 0) 0 22px / 88% 17px,
        linear-gradient(#000 0 0) 0 48px / 67% 10px;
  mask-repeat: no-repeat;
}
.loading-story { display: block; min-width: 0; }
.loading-story::before, .loading-story::after { content: ''; display: block; }
.loading-story::before { height: clamp(145px,15vw,235px); margin-bottom: 10px; }
.loading-reading { max-width: 72ch; height: 19rem; }
.loading-reading, .loading-rows {
  mask: repeating-linear-gradient(to bottom, #000 0 12px, transparent 12px 24px);
}
.loading-rows { max-width: 58ch; height: 96px; }
.loading-value { width: 5rem; height: 27px; margin-block: 5px; }
.loading-chart { height: 65px; }
.loading-exhibit { height: 10rem; }
.loading-facility { height: clamp(155px,16vw,224px); }
.loading-inline { display: inline-block; width: 18px; height: 18px; vertical-align: -.26em; margin-inline-end: .45em; }
.tour-loading .tour-panel::before { content: none; }
.tour-loading .loading-workspace {
  border-radius: 6px; height: clamp(590px, calc(560px + 3.6vw), 622px);
  border: 1px solid rgb(155 155 155 / 18%); background-color: rgb(155 155 155 / 4%);
}
.tour-loading .tour-tabs { height: 46px; align-items: center; padding-inline: 12px; }
.tour-loading .tour-tabs::after {
  content: ''; width: 100%; height: 12px; background-image: var(--loading-dots);
  mask: repeating-linear-gradient(90deg, #000 0 8%, transparent 8% 14.3%);
}
.tour-loading .loading-lines { max-width: 34rem; height: 10rem; align-content: center; }
@media (max-width: 759px) {
  .tour-loading .loading-workspace { height: clamp(595px, calc(800px - 36vw), 685px); }
}
.facility-frame[aria-busy=true]:empty { background: var(--loading-dots) var(--dots-x, 0) var(--dots-y, 0) var(--journey-panel); }
.facility-frame[aria-busy=true]:not(:empty) { position: relative; }
.facility-frame[aria-busy=true]:not(:empty)::after {
  content: ''; position: absolute; inset: auto 8px 8px auto; width: 24px; height: 18px;
  background: var(--loading-dots) var(--journey-panel);
}
html.public-site img[data-loading-image] { background-image: var(--loading-dots); color: transparent; }
.edition-cover img[data-loading-image] { aspect-ratio: auto 16/9; }
#report-content[aria-busy=true] #report-frame-slot { height: 0; overflow: hidden; }
@media (max-width: 600px) {
  .loading-story::before { height: clamp(141px,44vw,205px); }
  .loading-facility { height: clamp(145px,48vw,210px); }
}
