/* Object Atlas reading plates use the space above the existing article intro.
   They share the site palette and leave the heading's own grid and reading measure alone. */
[data-detail-plate="guide"] { --detail-art: url("/assets/brand/guide-plate.svg"); }
[data-detail-plate="lab"] { --detail-art: url("/assets/brand/lab-plate.svg"); }

[data-detail-plate]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inline-size: 8.5rem;
  block-size: 1.5rem;
  background: var(--detail-art) left center / contain no-repeat;
  transform: translateY(calc(-100% - .25rem));
  pointer-events: none;
}

@media (min-width: 48rem) {
  [data-detail-plate]::before {
    inset-inline: auto 0;
    transform: translateY(calc(-100% - .75rem));
    inline-size: 14rem;
    block-size: 2.5rem;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .site-header .field-band svg { animation: detail-open .9s cubic-bezier(.6, 0, .2, 1) both; }

  @keyframes detail-open {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
}

@media print {
  [data-detail-plate]::before { display: none; }
}
